diff --git a/src/main/java/io/github/silvigarabis/esplitter/ESplitterGui.java b/src/main/java/io/github/silvigarabis/esplitter/ESplitterGui.java index 12aadd7..abe2f24 100644 --- a/src/main/java/io/github/silvigarabis/esplitter/ESplitterGui.java +++ b/src/main/java/io/github/silvigarabis/esplitter/ESplitterGui.java @@ -227,7 +227,7 @@ public void show(Player player) { } public void closeGui(){ if (this.inventoryView != null){ - this.inventoryView.close(); + this.ctrl.player.closeInventory(); } this.inventory = null;