Fix inventory slots being off without exosuit

This commit is contained in:
DBotThePony 2022-09-03 19:27:29 +07:00
parent 00b8e546b0
commit a50fcaceaa
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -65,10 +65,15 @@ abstract class MatteryScreen<T : MatteryMenu>(menu: T, inventory: Inventory, tit
SlotPanel(this, hotbarStrip, slot).also { it.dock = Dock.LEFT }
}
val canvas = EditablePanel(this, inventoryFrame)
canvas.dock = Dock.FILL
for (i in 0 .. 2) {
getInventorySlotsRow(i).also {
it.parent = inventoryFrame
it.y = i * AbstractSlotPanel.SIZE
it.parent = canvas
}
}
} else {