Also unset "ender chest open" state on client
This commit is contained in:
parent
f9b2cef513
commit
1d11b9b626
@ -236,10 +236,6 @@ class ExopackInventoryScreen(menu: ExopackInventoryMenu) : MatteryScreen<Exopack
|
||||
menu.enderChestSlots.forEach {
|
||||
SlotPanel(this, grid, it)
|
||||
}
|
||||
|
||||
if (menu.enderChestOpenState.get()) {
|
||||
tab.activate()
|
||||
}
|
||||
}
|
||||
|
||||
makeChargePanels(frame)
|
||||
@ -295,6 +291,7 @@ class ExopackInventoryScreen(menu: ExopackInventoryMenu) : MatteryScreen<Exopack
|
||||
}
|
||||
|
||||
init {
|
||||
menu.enderChestOpenState.value = false
|
||||
PacketDistributor.sendToServer(ExopackMenuOpen)
|
||||
ru.dbotthepony.mc.otm.client.minecraft.player?.containerMenu = menu
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user