diff options
Diffstat (limited to 'nms-patches/PacketLoginInEncryptionBegin.patch')
-rw-r--r-- | nms-patches/PacketLoginInEncryptionBegin.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nms-patches/PacketLoginInEncryptionBegin.patch b/nms-patches/PacketLoginInEncryptionBegin.patch new file mode 100644 index 00000000..e2254aee --- /dev/null +++ b/nms-patches/PacketLoginInEncryptionBegin.patch @@ -0,0 +1,15 @@ +--- a/net/minecraft/server/PacketLoginInEncryptionBegin.java ++++ b/net/minecraft/server/PacketLoginInEncryptionBegin.java +@@ -12,8 +12,10 @@ + public PacketLoginInEncryptionBegin() {} + + public void a(PacketDataSerializer packetdataserializer) throws IOException { +- this.a = packetdataserializer.a(); +- this.b = packetdataserializer.a(); ++ // CraftBukkit start - limit length ++ this.a = packetdataserializer.readByteArray(256); ++ this.b = packetdataserializer.readByteArray(256); ++ // CraftBukkit end + } + + public void b(PacketDataSerializer packetdataserializer) throws IOException { |