Move Inventory Slots

This commit is contained in:
Kam committed 2024-03-17 17:07:04 -04:00
1 parent b671757b55
commit 0e9bbdcdac
1 file changed
+3 -2
@@ -33,12 +33,13 @@ public class ContainerCustomGui extends Container {
public void setGui(ScriptGui gui, EntityPlayer player) {
this.customGui = gui;
slotCount=0;
inventorySlots.clear();
if (this.customGui.getShowPlayerInv()) {
this.addPlayerInventory(player, this.customGui.getPlayerInvX(), this.customGui.getPlayerInvY());
}
slotCount=0;
// inventorySlots.clear();
for (IItemSlot slot : this.customGui.getSlots()) {
if (slot.hasStack()) {
this.addSlot(player, slot.getPosX(), slot.getPosY(), slot, slot.getStack().getMCItemStack(), player.worldObj.isRemote);