diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandProtect.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandProtect.java index 249d512..1ac7468 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandProtect.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandProtect.java @@ -114,14 +114,11 @@ public class CommandProtect extends SWCommand implements Listener { @EventHandler public void onExplode(EntityExplodeEvent event) { + Region region = Region.getRegion(event.getLocation()); + if (!region.isProtect() && !region.hasProtection()) { + return; + } event.blockList().removeIf(block -> { - Region region = Region.getRegion(block.getLocation()); - if (!region.isProtect()) { - return false; - } - if (!region.hasProtection()) { - return false; - } return block.getY() < region.getProtectYLevel(); }); }