diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/gui/base/SimulatorBaseGui.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/gui/base/SimulatorBaseGui.java index 9e81340b..7aee66a0 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/gui/base/SimulatorBaseGui.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/gui/base/SimulatorBaseGui.java @@ -70,7 +70,7 @@ public abstract class SimulatorBaseGui { return; } - player.getOpenInventory().close(); + TrickyTrialsWrapper.impl.closeInventoryView(player.getOpenInventory()); inventory = new SWInventory(player, () -> { inv = Bukkit.createInventory(null, size, title()); diff --git a/SpigotCore/SpigotCore_21/src/de/steamwar/core/TrickyTrialsWrapper21.java b/SpigotCore/SpigotCore_21/src/de/steamwar/core/TrickyTrialsWrapper21.java index 1b10c742..840c4cad 100644 --- a/SpigotCore/SpigotCore_21/src/de/steamwar/core/TrickyTrialsWrapper21.java +++ b/SpigotCore/SpigotCore_21/src/de/steamwar/core/TrickyTrialsWrapper21.java @@ -45,4 +45,9 @@ public class TrickyTrialsWrapper21 implements TrickyTrialsWrapper { public String getInventoryTitle(InventoryView view) { return view.getTitle(); } + + @Override + public void closeInventoryView(InventoryView view) { + view.close(); + } } diff --git a/SpigotCore/SpigotCore_8/src/de/steamwar/core/TrickyTrialsWrapper8.java b/SpigotCore/SpigotCore_8/src/de/steamwar/core/TrickyTrialsWrapper8.java index 35b80c58..0b67fdff 100644 --- a/SpigotCore/SpigotCore_8/src/de/steamwar/core/TrickyTrialsWrapper8.java +++ b/SpigotCore/SpigotCore_8/src/de/steamwar/core/TrickyTrialsWrapper8.java @@ -44,4 +44,9 @@ public class TrickyTrialsWrapper8 implements TrickyTrialsWrapper { public String getInventoryTitle(InventoryView view) { return view.getTitle(); } + + @Override + public void closeInventoryView(InventoryView view) { + view.close(); + } } diff --git a/SpigotCore/SpigotCore_Main/src/de/steamwar/core/TrickyTrialsWrapper.java b/SpigotCore/SpigotCore_Main/src/de/steamwar/core/TrickyTrialsWrapper.java index da8fc7cd..02d8febf 100644 --- a/SpigotCore/SpigotCore_Main/src/de/steamwar/core/TrickyTrialsWrapper.java +++ b/SpigotCore/SpigotCore_Main/src/de/steamwar/core/TrickyTrialsWrapper.java @@ -34,4 +34,6 @@ public interface TrickyTrialsWrapper { Material getTurtleScute(); String getInventoryTitle(InventoryView view); + + void closeInventoryView(InventoryView view); }