Paper/nms-patches/PacketPlayOutLogin.patch

18 Zeilen
619 B
Diff

2016-03-16 06:49:50 +01:00
--- a/net/minecraft/server/PacketPlayOutLogin.java
+++ b/net/minecraft/server/PacketPlayOutLogin.java
@@ -54,7 +54,13 @@
}
packetdataserializer.writeByte(i);
2016-03-30 21:50:59 +02:00
- packetdataserializer.writeInt(this.d);
2016-03-16 06:49:50 +01:00
+ // CraftBukkit start
+ if (packetdataserializer.version < 108) {
+ packetdataserializer.writeByte(this.d);
+ } else {
+ packetdataserializer.writeInt(this.d);
+ }
+ // CraftBukkit end
packetdataserializer.writeByte(this.e.a());
packetdataserializer.writeByte(this.f);
packetdataserializer.a(this.g.name());