Change item from main hand, not offhand. Fixes #329 (#363)

This commit is contained in:
Mats 2016-04-19 17:32:03 +02:00 committed by Myles
parent a496b2d3a8
commit 8852e3b3a3

View File

@ -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();