PacketLib icon indicating copy to clipboard operation
PacketLib copied to clipboard

`readVarLong` returns incorrect result for large values

Open Johni0702 opened this issue 3 years ago • 0 comments

Someone probably copy/pasted the readVarInt code and forgot to change the value type from int to long. https://github.com/GeyserMC/PacketLib/blob/e21e6c4e86bd9755afaa2dda9fd0f2a52eae7f7e/src/main/java/com/github/steveice10/packetlib/codec/BasePacketCodecHelper.java#L129-L130

Johni0702 avatar Dec 18 '22 21:12 Johni0702