Skip to content

Commit

Permalink
Properly flag that the menu should be opened
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeltumn committed Oct 28, 2023
1 parent 1ea9710 commit e8aa991
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,16 @@ public abstract class AbstractInterfaceView<I : InterfacesInventory, P : Pane>(
}

override suspend fun open() {
// Indicate that the menu should be opened after the next time rendering completes
openIfClosed = true

// If this menu overlaps the player inventory we always
// need to do a brand new first paint every time!
if (firstPaint || this !is ChestInterfaceView) {
firstPaint = true
setup()
firstPaint = false
} else {
// Indicate that the menu should be opened after rendering completes
openIfClosed = true
renderAndOpen()
}
}
Expand Down

0 comments on commit e8aa991

Please sign in to comment.