From 1da88bf07d37d69d44202f520ea20d964906dad6 Mon Sep 17 00:00:00 2001 From: Raycoms Date: Thu, 22 Aug 2024 18:29:41 +0200 Subject: [PATCH] fix --- .../api/inventory/container/ContainerCitizenInventory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/minecolonies/api/inventory/container/ContainerCitizenInventory.java b/src/main/java/com/minecolonies/api/inventory/container/ContainerCitizenInventory.java index 8e61bdbf95a..c13fa32e08c 100755 --- a/src/main/java/com/minecolonies/api/inventory/container/ContainerCitizenInventory.java +++ b/src/main/java/com/minecolonies/api/inventory/container/ContainerCitizenInventory.java @@ -187,14 +187,12 @@ public void set(@NotNull final ItemStack stack) } } - index = 3; int eqIndex = 0; for (EquipmentSlot equipmentSlot : EquipmentSlot.values()) { if (equipmentSlot.getType() == EquipmentSlot.Type.HUMANOID_ARMOR) { - eqIndex++; this.addSlot( new Slot(new SimpleContainer(inventory.getArmorInSlot(equipmentSlot)), 0, INVENTORY_BAR_SIZE + 215, 23 + eqIndex * PLAYER_INVENTORY_OFFSET_EACH) @@ -238,6 +236,7 @@ public boolean mayPlace(final ItemStack stack) } }); index--; + eqIndex++; } }