1
0
forked from xjboss/KCauldronX
KCauldronX/patches/net/minecraft/network/handshake/client/C00Handshake.java.patch

23 lines
1.1 KiB
Diff
Raw Permalink Normal View History

2015-03-22 17:38:04 +00:00
--- ../src-base/minecraft/net/minecraft/network/handshake/client/C00Handshake.java
+++ ../src-work/minecraft/net/minecraft/network/handshake/client/C00Handshake.java
@@ -12,8 +12,8 @@
public class C00Handshake extends Packet
{
private int field_149600_a;
- private String field_149598_b;
- private int field_149599_c;
+ public String field_149598_b; // CraftBukkit private -> public
+ public int field_149599_c; // CraftBukkit private -> public
private EnumConnectionState field_149597_d;
private static final String __OBFID = "CL_00001372";
@@ -31,7 +31,7 @@
public void readPacketData(PacketBuffer p_148837_1_) throws IOException
{
this.field_149600_a = p_148837_1_.readVarIntFromBuffer();
- this.field_149598_b = p_148837_1_.readStringFromBuffer(255);
+ this.field_149598_b = p_148837_1_.readStringFromBuffer(Short.MAX_VALUE); // Spigot
this.field_149599_c = p_148837_1_.readUnsignedShort();
this.field_149597_d = EnumConnectionState.func_150760_a(p_148837_1_.readVarIntFromBuffer());
}