diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt index 0c3dc50d4..c114b676b 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt @@ -328,7 +328,7 @@ abstract class MatteryMenu( addSlot(offhandSlot!!) for (i in 0 until if (mattery.hasExopack) mattery.combinedInventory.containerSize else mattery.wrappedItemInventory.containerSize) { - if (i in Inventory.INVENTORY_SIZE .. player.inventory.containerSize) continue + if (i in Inventory.INVENTORY_SIZE until player.inventory.containerSize) continue val slot = InventorySlot(mattery.combinedInventory, i, true)