Open Sander0542 opened 3 days ago
that working implementation just screams that the proxy is being sent bad (vanilla) data, i can't look right now, but, I'd guess that an earlier packet was malformed or modified in an unsupported manner
I am running the proxy-compatible-forge mod in the backend server to enable modern forwarding.
Also, I really don't have any experience using buffers, so the only reason I found this solution was that I was trying to debug it by creating a temp variable. Then I saw the next time I called the function I got 17 as a result. This made my try it and it worked, but I have no clue why.
Expected Behavior
When I connect to my backend server which is running Valhelsia 6 (Forge 1.20.1) I can connect and start playing.
Actual Behavior
When I am trying to connect to the backend server I get the following message:
Unable to connect gou to walhelsia6. Please try again later.
Steps to Reproduce
The
ProtocolUtils.readVarInt
method calls thereadVarIntSafely
method, but that returns theInteger.MIN_VALUE
which is invalid. When I call the same method again it returns a valid Integer. In my case17
.https://github.com/PaperMC/Velocity/blob/dev/3.0.0/proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java#L129-L136
Current implementation:
Working implementation:
Plugin List
https://modrinth.com/plugin/ambassador
Velocity Version
Velocity 3.3.0-SNAPSHOT (git-aa4e8780-b401) velocity.command.version-copyright velocitypowered.com - GitHub
Additional Information