From b61cbeb3508c0a32e757d488c9cac118ab957ac7 Mon Sep 17 00:00:00 2001 From: Alexander B Date: Tue, 5 Jan 2021 21:03:33 +0100 Subject: [PATCH] Remove block before dropping the item so it does not get pushed away --- eu/railduction/ruakij/spawnerDrops/listener/OnBlockBreak.java | 1 + 1 file changed, 1 insertion(+) diff --git a/eu/railduction/ruakij/spawnerDrops/listener/OnBlockBreak.java b/eu/railduction/ruakij/spawnerDrops/listener/OnBlockBreak.java index a241f14..ea62d17 100644 --- a/eu/railduction/ruakij/spawnerDrops/listener/OnBlockBreak.java +++ b/eu/railduction/ruakij/spawnerDrops/listener/OnBlockBreak.java @@ -100,6 +100,7 @@ public class OnBlockBreak implements Listener { bsm.setDisplayName(dropConfig.getString("item.name").replace("{mob-type}", cs.getSpawnedType().name())); item.setItemMeta(bsm); + e.getBlock().setType(Material.AIR); loc.getWorld().dropItem(loc, item); }