Fix inventory slots being off without exosuit
This commit is contained in:
parent
00b8e546b0
commit
a50fcaceaa
@ -65,10 +65,15 @@ abstract class MatteryScreen<T : MatteryMenu>(menu: T, inventory: Inventory, tit
|
|||||||
SlotPanel(this, hotbarStrip, slot).also { it.dock = Dock.LEFT }
|
SlotPanel(this, hotbarStrip, slot).also { it.dock = Dock.LEFT }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val canvas = EditablePanel(this, inventoryFrame)
|
||||||
|
|
||||||
|
canvas.dock = Dock.FILL
|
||||||
|
|
||||||
for (i in 0 .. 2) {
|
for (i in 0 .. 2) {
|
||||||
getInventorySlotsRow(i).also {
|
getInventorySlotsRow(i).also {
|
||||||
it.parent = inventoryFrame
|
it.parent = inventoryFrame
|
||||||
it.y = i * AbstractSlotPanel.SIZE
|
it.y = i * AbstractSlotPanel.SIZE
|
||||||
|
it.parent = canvas
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user