File tree 2 files changed +10
-8
lines changed
interfaces/src/main/kotlin/com/noxcrew/interfaces/view
2 files changed +10
-8
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.6 -SNAPSHOT"
18
+ version = " 1.1.7 -SNAPSHOT"
19
19
20
20
tasks.withType<JavaCompile > {
21
21
sourceCompatibility = javaVersion.toString()
Original file line number Diff line number Diff line change @@ -42,14 +42,16 @@ public class PlayerInterfaceView internal constructor(
42
42
43
43
// Double-check that this inventory is open now!
44
44
if (isOpen()) {
45
- // Clear the player's inventory!
46
- player.inventory.clear()
47
- if (player.openInventory.topInventory.type == InventoryType .CRAFTING ||
48
- player.openInventory.topInventory.type == InventoryType .CREATIVE
49
- ) {
50
- player.openInventory.topInventory.clear()
45
+ if (! backing.properties.inheritExistingItems) {
46
+ // Clear the player's inventory!
47
+ player.inventory.clear()
48
+ if (player.openInventory.topInventory.type == InventoryType .CRAFTING ||
49
+ player.openInventory.topInventory.type == InventoryType .CREATIVE
50
+ ) {
51
+ player.openInventory.topInventory.clear()
52
+ }
53
+ player.openInventory.cursor = null
51
54
}
52
- player.openInventory.cursor = null
53
55
54
56
// Trigger onOpen manually because there is no real inventory being opened,
55
57
// this will also re-draw the player inventory parts!
You can’t perform that action at this time.
0 commit comments