From f3a6319e4a6d1eb0dd34e29ed336f8b001c64425 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 14 Dec 2021 19:49:31 +0100 Subject: [PATCH] Fix BlockCounterListener Signed-off-by: yoyosource --- .../features/testblock/blockcounter/BlockCounterListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/blockcounter/BlockCounterListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/blockcounter/BlockCounterListener.java index d4ab3412..f910f935 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/blockcounter/BlockCounterListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/blockcounter/BlockCounterListener.java @@ -38,6 +38,9 @@ public class BlockCounterListener implements Listener { @EventHandler public void onEntityExplode(EntityExplodeEvent event) { Region region = Region.getRegion(event.getLocation()); + if (region.isGlobal()) { + return; + } List blockList = event.blockList(); blockList = blockList.stream().filter(block -> region.inRegion(block.getLocation(), RegionType.TESTBLOCK, RegionExtensionType.EXTENSION)).collect(Collectors.toList()); if (blockList.isEmpty()) {