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++; } }