From 61eb28f78e4eb2ac180b5e29e1f130a263322a51 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 27 Oct 2023 23:38:31 +0200 Subject: [PATCH] Fix double item drops Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/listener/Permanent.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/listener/Permanent.java b/FightSystem_Core/src/de/steamwar/fightsystem/listener/Permanent.java index e56d472..a0eabba 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/listener/Permanent.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/listener/Permanent.java @@ -37,7 +37,6 @@ import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; 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; @@ -153,14 +152,6 @@ public class Permanent implements Listener { e.setCancelled(true); } - @SuppressWarnings("deprecation") - @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) - public void onBlockBreak(BlockBreakEvent e) { - Block block = e.getBlock(); - for(ItemStack stack : block.getDrops(e.getPlayer().getItemInHand())) - Config.world.dropItemNaturally(block.getLocation(), stack); - } - @EventHandler public void onDropPickup(PlayerPickupItemEvent e) { if(!(Config.ArenaRegion.inRegion(e.getItem().getLocation())))