From 647ef97bfb2ed5b23917235cebd8d2fdb159c1de Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Sun, 22 Oct 2023 12:23:33 +0200 Subject: [PATCH] Add group chooser fix --- .../bausystem/features/simulator2/gui/SimulatorRedstoneGui.java | 1 + .../bausystem/features/simulator2/gui/SimulatorTNTGui.java | 1 + 2 files changed, 2 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator2/gui/SimulatorRedstoneGui.java b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator2/gui/SimulatorRedstoneGui.java index 6d66cd33..a283e898 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator2/gui/SimulatorRedstoneGui.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator2/gui/SimulatorRedstoneGui.java @@ -89,6 +89,7 @@ public class SimulatorRedstoneGui extends SimulatorScrollGui { new SimulatorRedstoneSettingsGui(player, simulator, redstone, this).open(); })); + //Group chooser inventory.setItem(49, new SWItem(Material.LEAD, "§eMove", clickType -> { new SimulatorGroupChooserGui(player, simulator, simulator.getElements(), redstone, simulatorGroup, this).open(); })); diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator2/gui/SimulatorTNTGui.java b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator2/gui/SimulatorTNTGui.java index 1672564f..091315b4 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator2/gui/SimulatorTNTGui.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator2/gui/SimulatorTNTGui.java @@ -46,6 +46,7 @@ public class SimulatorTNTGui extends SimulatorScrollGui { public SimulatorTNTGui(Player player, Simulator simulator, TNTElement tnt, SimulatorGroup parent, SimulatorBaseGui back) { super(player, simulator, 6 * 9, tnt.getPhases()); this.tnt = tnt; + this.parent = parent; this.back = back; }