We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 150bb08 commit 4a1bc06Copy full SHA for 4a1bc06
interfaces/src/main/kotlin/com/noxcrew/interfaces/view/InterfaceView.kt
@@ -35,8 +35,8 @@ public interface InterfaceView {
35
36
/** Closes this view. */
37
public suspend fun close(
38
- reason: InventoryCloseEvent.Reason = InventoryCloseEvent.Reason.PLUGIN,
39
- closeInventory: Boolean = reason != InventoryCloseEvent.Reason.OPEN_NEW
+ reason: InventoryCloseEvent.Reason = InventoryCloseEvent.Reason.UNKNOWN,
+ changingView: Boolean = reason == InventoryCloseEvent.Reason.OPEN_NEW
40
)
41
42
/** Returns whether this view is opened based on the player's current shown inventory. */
0 commit comments