mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
15 lines
643 B
Diff
15 lines
643 B
Diff
--- 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 {
|