File tree 2 files changed +8
-3
lines changed
interfaces/src/main/kotlin/com/noxcrew/interfaces/view
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ val javaVersion: Int = 21
15
15
16
16
allprojects {
17
17
group = " com.noxcrew.interfaces"
18
- version = " 1.1.2 -SNAPSHOT"
18
+ version = " 1.1.3 -SNAPSHOT"
19
19
20
20
tasks.withType<JavaCompile > {
21
21
sourceCompatibility = javaVersion.toString()
Original file line number Diff line number Diff line change @@ -44,7 +44,9 @@ public class PlayerInterfaceView internal constructor(
44
44
if (isOpen()) {
45
45
// Clear the player's inventory!
46
46
player.inventory.clear()
47
- if (player.openInventory.topInventory.type == InventoryType .CRAFTING ) {
47
+ if (player.openInventory.topInventory.type == InventoryType .CRAFTING ||
48
+ player.openInventory.topInventory.type == InventoryType .CREATIVE
49
+ ) {
48
50
player.openInventory.topInventory.clear()
49
51
}
50
52
player.openInventory.cursor = null
@@ -66,6 +68,9 @@ public class PlayerInterfaceView internal constructor(
66
68
}
67
69
68
70
override fun isOpen (): Boolean =
69
- player.openInventory.type == InventoryType .CRAFTING &&
71
+ (
72
+ player.openInventory.type == InventoryType .CRAFTING ||
73
+ player.openInventory.type == InventoryType .CREATIVE
74
+ ) &&
70
75
InterfacesListeners .INSTANCE .getOpenInterface(player.uniqueId) == this
71
76
}
You can’t perform that action at this time.
0 commit comments