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); }