Display offhand slot even when have no extra slots in exopack
This commit is contained in:
parent
9244de0ac2
commit
7569b3fe0a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user