From 3f0ad4b46243d1225264eaf98675b03043b3afb6 Mon Sep 17 00:00:00 2001 From: Steveice10 Date: Tue, 6 Aug 2013 08:18:58 -0700 Subject: [PATCH] Fix writing length in PacketMapChunk --- .../ch/spacebase/mcprotocol/standard/packet/PacketMapChunk.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/spacebase/mcprotocol/standard/packet/PacketMapChunk.java b/src/main/java/ch/spacebase/mcprotocol/standard/packet/PacketMapChunk.java index 101480e6..ffeed74a 100644 --- a/src/main/java/ch/spacebase/mcprotocol/standard/packet/PacketMapChunk.java +++ b/src/main/java/ch/spacebase/mcprotocol/standard/packet/PacketMapChunk.java @@ -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); }