From 7569b3fe0ad822adf25b416ee193cd7374a2e1b1 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 20 Aug 2023 23:41:42 +0700 Subject: [PATCH] Display offhand slot even when have no extra slots in exopack --- .../ru/dbotthepony/mc/otm/client/screen/MatteryScreen.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/MatteryScreen.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/MatteryScreen.kt index 02a671a0b..64abf7566 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/MatteryScreen.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/MatteryScreen.kt @@ -238,6 +238,12 @@ abstract class MatteryScreen(menu: T, inventory: Inventory, tit it.parent = canvas } } + + InventorySlotPanel( + this, + BackgroundPanel.padded(this, inventoryFrame, inventoryFrame!!.width + 2f, inventoryFrame!!.height - 11f - AbstractSlotPanel.SIZE, AbstractSlotPanel.SIZE, AbstractSlotPanel.SIZE), + menu.offhandSlot!! + ).dock = Dock.FILL } else { inventoryFrame = FramePanel>(this, null, 0f, 0f, INVENTORY_FRAME_WIDTH_EXTENDED, BASE_INVENTORY_FRAME_HEIGHT + AbstractSlotPanel.SIZE * inventoryRows, inventory.displayName).also(this::addPanel) inventoryFrame!!.makeHelpButton().addSlotFiltersHelp().also {