fix: storage overlay "edit pages" being misaligned
closes https://github.com/nea89o/Firmament/issues/120
This commit is contained in:
@@ -154,13 +154,16 @@ class StorageOverlayScreen : Screen(Text.literal("")) {
|
|||||||
|
|
||||||
fun editPages() {
|
fun editPages() {
|
||||||
isExiting = true
|
isExiting = true
|
||||||
|
MC.instance.send {
|
||||||
val hs = MC.screen as? HandledScreen<*>
|
val hs = MC.screen as? HandledScreen<*>
|
||||||
if (StorageBackingHandle.fromScreen(hs) is StorageBackingHandle.Overview) {
|
if (StorageBackingHandle.fromScreen(hs) is StorageBackingHandle.Overview) {
|
||||||
hs.customGui = null
|
hs.customGui = null
|
||||||
|
hs.init(MC.instance, width, height)
|
||||||
} else {
|
} else {
|
||||||
MC.sendCommand("storage")
|
MC.sendCommand("storage")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val guiContext = GuiContext(EmptyComponent())
|
val guiContext = GuiContext(EmptyComponent())
|
||||||
private val knobStub = EmptyComponent()
|
private val knobStub = EmptyComponent()
|
||||||
|
|||||||
Reference in New Issue
Block a user