From a63c1a94ca55219be0efd9f551f6d83296e4250e Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 9 May 2026 21:10:43 +0200 Subject: [PATCH] Fix TNT explosion logic to handle non-TNT entities correctly Signed-off-by: Chaoscaot --- .../de/steamwar/bausystem/features/region/TNTListener.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/region/TNTListener.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/region/TNTListener.java index cc7b7c82..5e365c7d 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/region/TNTListener.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/region/TNTListener.java @@ -67,11 +67,7 @@ public class TNTListener implements Listener, ScoreboardElement { @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) public void onExplode(EntityExplodeEvent event) { - if (!(event.getEntity() instanceof TNTPrimed)) { - event.blockList().clear(); - return; - } - explode(event.blockList(), true); + explode(event.blockList(), event.getEntity() instanceof TNTPrimed); } @Override