From c7248cfb45e96a0f5dcfedad99d6103b5a715d15 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 18 May 2023 20:38:34 +0200 Subject: [PATCH] Remove explosion workaround Signed-off-by: Lixfel --- .../de/steamwar/fightsystem/listener/Permanent.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/listener/Permanent.java b/FightSystem_Core/src/de/steamwar/fightsystem/listener/Permanent.java index 3b1b606..4ae1875 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/listener/Permanent.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/listener/Permanent.java @@ -40,7 +40,6 @@ import org.bukkit.event.Listener; import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.block.BlockDispenseEvent; import org.bukkit.event.block.BlockFromToEvent; -import org.bukkit.event.entity.EntityExplodeEvent; import org.bukkit.event.entity.FoodLevelChangeEvent; import org.bukkit.event.entity.PlayerDeathEvent; import org.bukkit.event.entity.SpawnerSpawnEvent; @@ -179,18 +178,6 @@ public class Permanent implements Listener { } } - @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) - public void onExplosion(EntityExplodeEvent e) { - e.blockList().removeIf(block -> { - if(block.getType() == Material.TNT) { - return false; - } else { - block.setType(Material.AIR); - return true; - } - }); - } - @EventHandler public void onWorldLoad(WorldLoadEvent e) { if(!Config.ArenaLeaveable)