Skip to content

Commit efce601

Browse files
committed
fix: Don't count re-opening the base PlayerInterface as switching views
1 parent 5d7ff94 commit efce601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interfaces/src/main/kotlin/com/noxcrew/interfaces/InterfacesListeners.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public class InterfacesListeners private constructor(private val plugin: Plugin)
235235
val shouldReopen = reason in REOPEN_REASONS && !event.player.isDead && openInterface != null
236236

237237
// Mark the current view as closed properly
238-
view.markClosed(reason, shouldReopen || reason == Reason.OPEN_NEW)
238+
view.markClosed(reason)
239239

240240
// If possible, open back up a previous interface
241241
if (shouldReopen) {

0 commit comments

Comments
 (0)