Display offhand slot even when have no extra slots in exopack

This commit is contained in:
DBotThePony 2023-08-20 23:41:42 +07:00
parent 9244de0ac2
commit 7569b3fe0a
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -238,6 +238,12 @@ abstract class MatteryScreen<T : MatteryMenu>(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<MatteryScreen<*>>(this, null, 0f, 0f, INVENTORY_FRAME_WIDTH_EXTENDED, BASE_INVENTORY_FRAME_HEIGHT + AbstractSlotPanel.SIZE * inventoryRows, inventory.displayName).also(this::addPanel)
inventoryFrame!!.makeHelpButton().addSlotFiltersHelp().also {