Skip to content

Commit e8aa991

Browse files
committed
Properly flag that the menu should be opened
1 parent 1ea9710 commit e8aa991

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

next/src/main/kotlin/org/incendo/interfaces/next/view/AbstractInterfaceView.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,16 @@ public abstract class AbstractInterfaceView<I : InterfacesInventory, P : Pane>(
8282
}
8383

8484
override suspend fun open() {
85+
// Indicate that the menu should be opened after the next time rendering completes
86+
openIfClosed = true
87+
8588
// If this menu overlaps the player inventory we always
8689
// need to do a brand new first paint every time!
8790
if (firstPaint || this !is ChestInterfaceView) {
8891
firstPaint = true
8992
setup()
9093
firstPaint = false
9194
} else {
92-
// Indicate that the menu should be opened after rendering completes
93-
openIfClosed = true
9495
renderAndOpen()
9596
}
9697
}

0 commit comments

Comments
 (0)