Skip to content

Commit 4a1bc06

Browse files
committed
fix: Fix InventoryView#close having wrong default paramters
1 parent 150bb08 commit 4a1bc06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interfaces/src/main/kotlin/com/noxcrew/interfaces/view/InterfaceView.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public interface InterfaceView {
3535

3636
/** Closes this view. */
3737
public suspend fun close(
38-
reason: InventoryCloseEvent.Reason = InventoryCloseEvent.Reason.PLUGIN,
39-
closeInventory: Boolean = reason != InventoryCloseEvent.Reason.OPEN_NEW
38+
reason: InventoryCloseEvent.Reason = InventoryCloseEvent.Reason.UNKNOWN,
39+
changingView: Boolean = reason == InventoryCloseEvent.Reason.OPEN_NEW
4040
)
4141

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

0 commit comments

Comments
 (0)