From b60a6743edd1b0e80023a97f9b901eca5411d88f Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 23 Mar 2012 02:12:51 -0400 Subject: [PATCH] Fixed Block.breakNaturally(). Fixes BUKKIT-1295 --- src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index 368cea9959..4da3078164 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -348,6 +348,9 @@ public class CraftBlock implements Block { setTypeId(Material.AIR.getId()); if (block != null) { block.dropNaturally(chunk.getHandle().world, x, y, z, data, 1.0F, 0); + for (ItemStack item : getDrops()) { + breakNaturally(item); + } return true; } return false;