Also unset "ender chest open" state on client

This commit is contained in:
DBotThePony 2025-02-28 22:05:47 +07:00
parent f9b2cef513
commit 1d11b9b626
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -236,10 +236,6 @@ class ExopackInventoryScreen(menu: ExopackInventoryMenu) : MatteryScreen<Exopack
menu.enderChestSlots.forEach { menu.enderChestSlots.forEach {
SlotPanel(this, grid, it) SlotPanel(this, grid, it)
} }
if (menu.enderChestOpenState.get()) {
tab.activate()
}
} }
makeChargePanels(frame) makeChargePanels(frame)
@ -295,6 +291,7 @@ class ExopackInventoryScreen(menu: ExopackInventoryMenu) : MatteryScreen<Exopack
} }
init { init {
menu.enderChestOpenState.value = false
PacketDistributor.sendToServer(ExopackMenuOpen) PacketDistributor.sendToServer(ExopackMenuOpen)
ru.dbotthepony.mc.otm.client.minecraft.player?.containerMenu = menu ru.dbotthepony.mc.otm.client.minecraft.player?.containerMenu = menu
} }