HypixelDev / ModAPI

Hypixel Mod API for interfacing with the Hypixel Server via the Minecraft Plugin Message system.
MIT License
82 stars 10 forks source link

Server sends an incorrect environment to 1.20.6 clients #27

Closed AzureAaron closed 5 months ago

AzureAaron commented 5 months ago

On Fabric 1.20.6 the Hello S2C packet that Hypixel sends my client contains an incorrect var int index for the PRODUCTION enum, instead of getting a var int of 0 I get a var int of 1 which falsely indicates that my client has connected to the alpha network. The old non-event-based location packet was parsed the same way (with the PacketCodecs#indexed which uses var ints) and didn't have this issue.

The custom payload sends the following bytes to my client: [1, 0] I assume the zero is to enforce implementations of the packet reading all unused bytes, unless the 1 is sent by mistake.

ConnorLinfoot commented 5 months ago

The first byte is the success byte, as it's still part of the standard framework the Mod API uses, it still needs to include this for the client to know how to handle following bytes.