From b31114ba0912cafbf451647d8af9666325468f05 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 20 Aug 2023 17:45:39 +0700 Subject: [PATCH] Also don't add exopack slots to menus if we don't have exopack --- src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8f8e31ef9..0c3dc50d4 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt @@ -327,7 +327,7 @@ abstract class MatteryMenu( mapQuickMoveToInventory(offhandSlot!!) addSlot(offhandSlot!!) - for (i in 0 until mattery.combinedInventory.containerSize) { + 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 val slot = InventorySlot(mattery.combinedInventory, i, true)