From 36b8747461cdd57e704ed942face3d58c1b4fbe1 Mon Sep 17 00:00:00 2001 From: Steveice10 Date: Sun, 18 Aug 2013 10:17:45 -0700 Subject: [PATCH] Fix writing field in PacketBlockAction. Thanks to Cr0s for the heads up with problems fixed in this commit and the previous one. --- .../spacebase/mcprotocol/standard/packet/PacketBlockAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/spacebase/mcprotocol/standard/packet/PacketBlockAction.java b/src/main/java/ch/spacebase/mcprotocol/standard/packet/PacketBlockAction.java index d21203b3..ae61d186 100644 --- a/src/main/java/ch/spacebase/mcprotocol/standard/packet/PacketBlockAction.java +++ b/src/main/java/ch/spacebase/mcprotocol/standard/packet/PacketBlockAction.java @@ -42,7 +42,7 @@ public class PacketBlockAction extends Packet { @Override public void write(NetOutput out) throws IOException { out.writeInt(this.x); - out.writeInt(this.y); + out.writeShort(this.y); out.writeInt(this.z); out.writeByte(this.b1); out.writeByte(this.b2);