From 8852e3b3a304bd2ebc5e0a3712027aa3cd5dff75 Mon Sep 17 00:00:00 2001 From: Mats Date: Tue, 19 Apr 2016 17:32:03 +0200 Subject: [PATCH] Change item from main hand, not offhand. Fixes #329 (#363) --- .../protocols/protocol1_9to1_8/packets/SpawnPackets.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/SpawnPackets.java b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/SpawnPackets.java index b671aad6a..0ccfff9b9 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/SpawnPackets.java +++ b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/SpawnPackets.java @@ -294,7 +294,7 @@ public class SpawnPackets { if (item != 0) { PacketWrapper packet = new PacketWrapper(0x3C, null, wrapper.user()); packet.write(Type.VAR_INT, wrapper.get(Type.VAR_INT, 0)); - packet.write(Type.VAR_INT, 1); + packet.write(Type.VAR_INT, 0); packet.write(Type.ITEM, new Item(item, (byte) 1, (short) 0, null)); try { packet.send();