From a50fcaceaa7ca36d8b1cb6f2623dd8f49b6a0f33 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 3 Sep 2022 19:27:29 +0700 Subject: [PATCH] Fix inventory slots being off without exosuit --- .../ru/dbotthepony/mc/otm/client/screen/MatteryScreen.kt | 5 +++++ 1 file changed, 5 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 b2c5b5f4a..e70e3d2f9 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 @@ -65,10 +65,15 @@ abstract class MatteryScreen(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 {