From fc44167ea0bda4bdddd80876330c6d4f401c6a65 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 6 Feb 2021 21:47:48 +0100 Subject: [PATCH] Add tnt message with OFF mode --- .../src/de/steamwar/bausystem/commands/CommandTNT.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTNT.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTNT.java index e3914ca..d528f37 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTNT.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTNT.java @@ -135,7 +135,6 @@ public class CommandTNT implements CommandExecutor, Listener { public void onExplode(EntityExplodeEvent event) { event.blockList().removeIf(block -> { Region region = Region.getRegion(block.getLocation()); - if (region.getTntMode() == TNTMode.OFF) return true; if (region.getTntMode() == TNTMode.ON) return false; if (region.hasBuildRegion() && region.inBuildRegion(block.getLocation())) { RegionToggleCommand.actionBar(region, "§cEine Explosion hätte Blöcke im Baubereich zerstört"); @@ -145,7 +144,7 @@ public class CommandTNT implements CommandExecutor, Listener { RegionToggleCommand.actionBar(region, "§cEine Explosion hätte Blöcke im Ausfahrbereich zerstört"); return true; } - return false; + return region.getTntMode() == TNTMode.OFF; }); }