From 19cf2207ff9fbd731932b262416c1d3a07ed0c1c Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 2 May 2021 20:23:10 +0200 Subject: [PATCH] Fix AutoStartGuiItem and RedstoneTesterGuiItem --- .../bausystem/features/autostart/AutoStartGuiItem.java | 3 ++- .../features/redstonetester/RedstoneTesterGuiItem.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/autostart/AutoStartGuiItem.java b/BauSystem_Main/src/de/steamwar/bausystem/features/autostart/AutoStartGuiItem.java index 64bcf929..243c80ac 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/autostart/AutoStartGuiItem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/autostart/AutoStartGuiItem.java @@ -45,8 +45,9 @@ public class AutoStartGuiItem extends GuiItem { @Override public boolean click(ClickType click, Player p) { + p.closeInventory(); p.performCommand("timer"); - return true; + return false; } @Override diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstoneTesterGuiItem.java b/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstoneTesterGuiItem.java index 8763767d..1c90dd80 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstoneTesterGuiItem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstoneTesterGuiItem.java @@ -46,8 +46,9 @@ public class RedstoneTesterGuiItem extends GuiItem { @Override public boolean click(ClickType click, Player p) { + p.closeInventory(); p.performCommand("redstonetester"); - return true; + return false; } @Override