From 395e4a216753bfb8078242fa688699e258dea9c7 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Tue, 25 Nov 2025 17:37:23 +0100 Subject: [PATCH] Hotfix windcharges destroying blocks --- .../de/steamwar/bausystem/features/world/OtherTNTListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/world/OtherTNTListener.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/world/OtherTNTListener.java index 4deb1e5d..3d2d9d8d 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/world/OtherTNTListener.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/world/OtherTNTListener.java @@ -21,6 +21,7 @@ package de.steamwar.bausystem.features.world; import de.steamwar.linkage.Linked; import org.bukkit.Material; +import org.bukkit.entity.TNTPrimed; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; @@ -31,6 +32,7 @@ public class OtherTNTListener implements Listener { @EventHandler(priority = EventPriority.MONITOR) public void onExplosion(EntityExplodeEvent e) { + if (!(e instanceof TNTPrimed)) return; e.blockList().removeIf(block -> { if(block.getType() == Material.TNT) { return false;