From a91c72fb44a4c80e36c5467e7b7ea973b642c320 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Mon, 13 Apr 2020 14:42:48 -0300 Subject: [PATCH] position fix --- .../protocols/protocol1_9to1_8/packets/WorldPackets.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/WorldPackets.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/WorldPackets.java index 041a28353..5685a0370 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/WorldPackets.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/WorldPackets.java @@ -291,7 +291,7 @@ public class WorldPackets { wrapper.clearInputBuffer(); // First set this packet ID to Block placement wrapper.setId(0x08); - wrapper.write(Type.POSITION, new Position((long) -1, (long) -1, (long) -1)); + wrapper.write(Type.POSITION, new Position(-1, (short) -1, -1)); wrapper.write(Type.UNSIGNED_BYTE, (short) 255); // Write item in hand Item item = Protocol1_9To1_8.getHandItem(wrapper.user());