Skip to content

Commit

Permalink
fix: Fix chat query getting instantly cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeltumn committed Jul 13, 2024
1 parent 71bb6d2 commit 6db273a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ public abstract class AbstractInterfaceView<I : InterfacesInventory, T : Interfa
reason: InventoryCloseEvent.Reason = InventoryCloseEvent.Reason.UNKNOWN,
changingView: Boolean = reason == InventoryCloseEvent.Reason.OPEN_NEW
) {
// End a possible chat query with the listener
InterfacesListeners.INSTANCE.abortQuery(player.uniqueId, this)
if (!changingView) {
// End a possible chat query with the listener (unless we're changing views)
InterfacesListeners.INSTANCE.abortQuery(player.uniqueId, this)
}

// Ensure that the menu does not open
openIfClosed.set(false)
Expand Down

0 comments on commit 6db273a

Please sign in to comment.