Skip to content

Commit

Permalink
fix: Fix InventoryView#close having wrong default paramters
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeltumn committed Jun 27, 2024
1 parent 150bb08 commit 4a1bc06
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public interface InterfaceView {

/** Closes this view. */
public suspend fun close(
reason: InventoryCloseEvent.Reason = InventoryCloseEvent.Reason.PLUGIN,
closeInventory: Boolean = reason != InventoryCloseEvent.Reason.OPEN_NEW
reason: InventoryCloseEvent.Reason = InventoryCloseEvent.Reason.UNKNOWN,
changingView: Boolean = reason == InventoryCloseEvent.Reason.OPEN_NEW
)

/** Returns whether this view is opened based on the player's current shown inventory. */
Expand Down

0 comments on commit 4a1bc06

Please sign in to comment.