Posted August 20, 201411 yr I am making a Gui and I made it taller then a standard one and i have the players inventory in it and I noticed that if you click items in the hot bar it spits them out like you are throwing them from your inventory I think it is because if you through a item there in a standard Gui it drops. If i move my hot bar up it doesn't do that. Here is the code used for my hot bar slots. protected void bindPlayerInventory(InventoryPlayer inventoryPlayer) { for (int i = 0; i < 3; i++) { for (int j = 0; j < 9; j++) { addSlotToContainer(new Slot(inventoryPlayer, j + i * 9 + 9, 8 + j * 18, 114 + i * 18)); } } for (int i = 0; i < 9; i++) { addSlotToContainer(new Slot(inventoryPlayer, i, 8 + i * 18, 172)); } }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.