Fix writing length in PacketMapChunk

This commit is contained in:
Steveice10 2013-08-06 08:18:58 -07:00
parent 9f7e7302a5
commit 3f0ad4b462

View file

@ -84,7 +84,7 @@ public class PacketMapChunk extends Packet {
out.writeBoolean(this.groundUp);
out.writeShort((short) (this.startY & 0xffff));
out.writeShort((short) (this.endY & 0xffff));
out.writeByte(this.length);
out.writeInt(this.length);
out.writeBytes(this.data, this.length);
}