This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I have an item in my inventory that needs to be moved to the hotbar, when I try to do this the item disappears (checked on the server) how can I fix this?
Java:
ItemStack itemStack = player.inventory.getStackInSlot(9);
player.inventory.setInventorySlotContents(9,null);
player.inventory.setInventorySlotContents(0,itemStack);
//player.inventoryContainer.detectAndSendChanges();
I have an item in my inventory that needs to be moved to the hotbar, when I try to do this the item disappears (checked on the server) how can I fix this?
Java:
ItemStack itemStack = player.inventory.getStackInSlot(9);
player.inventory.setInventorySlotContents(9,null);
player.inventory.setInventorySlotContents(0,itemStack);
//player.inventoryContainer.detectAndSendChanges();