Fixed custom gui with slot update synchronisation

This commit is contained in:
Goodbird committed 2024-01-03 17:57:26 +03:00
1 parent 37c8c8addc
commit 79a15fe1e8
2 files changed
+4 -4

No files matched your search

@@ -39,10 +39,9 @@ public class ContainerCustomGui extends Container {
this.addPlayerInventory(player, this.customGui.getPlayerInvX(), this.customGui.getPlayerInvY());
}
Iterator var3 = this.customGui.getSlots().iterator();
while(var3.hasNext()) {
IItemSlot slot = (IItemSlot)var3.next();
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);
} else {