From 646b1c47d474f02b040f5dfff60d74efdf5752ea Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 12 May 2021 22:25:23 +0200 Subject: [PATCH] Fix NavWandBauGuiItem Fix WorldEditBauGuiItem --- .../bausystem/features/util/items/NavWandBauGuiItem.java | 1 + .../bausystem/features/util/items/WorldEditBauGuiItem.java | 1 + 2 files changed, 2 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/util/items/NavWandBauGuiItem.java b/BauSystem_Main/src/de/steamwar/bausystem/features/util/items/NavWandBauGuiItem.java index 86a1deaf..b6e33ae7 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/util/items/NavWandBauGuiItem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/util/items/NavWandBauGuiItem.java @@ -52,6 +52,7 @@ public class NavWandBauGuiItem extends BauGuiItem { @Override public boolean click(ClickType click, Player p) { p.performCommand("/wand -n"); + p.closeInventory(); return false; } } diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/util/items/WorldEditBauGuiItem.java b/BauSystem_Main/src/de/steamwar/bausystem/features/util/items/WorldEditBauGuiItem.java index 90c2575c..7d5d377e 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/util/items/WorldEditBauGuiItem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/util/items/WorldEditBauGuiItem.java @@ -52,6 +52,7 @@ public class WorldEditBauGuiItem extends BauGuiItem { @Override public boolean click(ClickType click, Player p) { p.performCommand("/wand"); + p.closeInventory(); return false; } }