GeyserMC / PacketLib

A library for packet-based networking between clients and servers.
MIT License
80 stars 40 forks source link

`readVarLong` returns incorrect result for large values #47

Open Johni0702 opened 1 year ago

Johni0702 commented 1 year ago

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