Use cursor item in windows packet (thanks mojang)

This commit is contained in:
TheMode 2021-07-31 18:16:19 +02:00
parent e150a6542a
commit aa1fc186f0

View File

@ -253,7 +253,7 @@ public class PlayerInventory extends AbstractInventory implements EquipmentHandl
final int slot = convertToPacketSlot(i);
convertedSlots[slot] = itemStacks[i];
}
return new WindowItemsPacket((byte) 0, 0, convertedSlots, ItemStack.AIR);
return new WindowItemsPacket((byte) 0, 0, convertedSlots, cursorItem);
}
@Override