Remove block before dropping the item so it does not get pushed away

This commit is contained in:
Alexander B 2021-01-05 21:03:33 +01:00
parent fd942d7d88
commit b61cbeb350

View File

@ -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);
}