From cdac4235f55ab3e7da89e7330590cf9e463b3631 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 25 Dec 2023 11:38:20 +0100 Subject: [PATCH] Fix SimulatorTNTPhaseSettingsGui --- .../features/simulator/gui/SimulatorTNTPhaseSettingsGui.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/gui/SimulatorTNTPhaseSettingsGui.java b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/gui/SimulatorTNTPhaseSettingsGui.java index 01ec8b04..9bfc4fe5 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/gui/SimulatorTNTPhaseSettingsGui.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/gui/SimulatorTNTPhaseSettingsGui.java @@ -83,7 +83,7 @@ public class SimulatorTNTPhaseSettingsGui extends SimulatorBaseGui { SWItem countItem = new SWItem(Material.TNT, "§eCount§8:§7 " + count, clickType -> { new SimulatorAnvilGui<>(player, "Count", count + "", Integer::parseInt, integer -> { - if (integer < 0) return false; + if (integer < 1) return false; tnt.setCount(integer); SimulatorWatcher.update(simulator); return true;