TheDevTec / TheAPI

TheAPI plugin
39 stars 8 forks source link

Update PacketHandlerModern.java #11

Closed petulikan1 closed 1 year ago

petulikan1 commented 1 year ago

Adding new 1.20 - 1.20.1 field because of Minecraft obfuscation Old 1.19.x-1.19.4 uses field "ac" for field to determine whether the server is actually being setup but in 1.20.x it's different field beacuse of the obfuscation.

And because there wasn't any case 20:, the while loop never actually ended thus never being able to reach the Packet Handler setup part.

This change fixes that.

1.19 image

1.20 image