From 475f93426c10b77f12be2a761369198fc38d0596 Mon Sep 17 00:00:00 2001 From: jojo Date: Wed, 3 Feb 2021 18:09:16 +0100 Subject: [PATCH] Simplify CommandTNT for Region without Testblock --- .../src/de/steamwar/bausystem/commands/CommandTNT.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTNT.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTNT.java index e86ba40..c976f9a 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTNT.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTNT.java @@ -139,11 +139,7 @@ public class CommandTNT implements CommandExecutor, Listener { } private void tntToggle(Region region, TNTMode requestedMode, String requestedMessage) { - if (requestedMode != null) { - if (!region.hasTestblock() && requestedMode == TNTMode.ONLY_TB) { - requestedMode = TNTMode.ON; - requestedMessage = getEnableMessage(); - } + if (requestedMode != null && region.hasTestblock()) { region.setTntMode(requestedMode); RegionToggleCommand.actionBar(region, requestedMessage); return;