diff options
author | EvilSeph <evilseph@gmail.com> | 2012-03-23 03:06:37 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-23 03:21:20 -0400 |
commit | ff22e4e3419b0bef85b6cf0e8cefe27711fc27ff (patch) | |
tree | 1f1fe25f1a1976d2567967dd87701b1c1d52e18c /src | |
parent | b60a6743edd1b0e80023a97f9b901eca5411d88f (diff) | |
download | craftbukkit-ff22e4e3419b0bef85b6cf0e8cefe27711fc27ff.tar craftbukkit-ff22e4e3419b0bef85b6cf0e8cefe27711fc27ff.tar.gz craftbukkit-ff22e4e3419b0bef85b6cf0e8cefe27711fc27ff.tar.lz craftbukkit-ff22e4e3419b0bef85b6cf0e8cefe27711fc27ff.tar.xz craftbukkit-ff22e4e3419b0bef85b6cf0e8cefe27711fc27ff.zip |
Really fixed Block.breakNaturally(). Fixes BUKKIT-1295
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index 4da30781..b667b21d 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -18,6 +18,7 @@ import org.bukkit.block.BlockFace; import org.bukkit.block.BlockState; import org.bukkit.block.PistonMoveReaction; import org.bukkit.craftbukkit.CraftChunk; +import org.bukkit.craftbukkit.inventory.CraftItemStack; import org.bukkit.inventory.ItemStack; import org.bukkit.metadata.MetadataValue; import org.bukkit.plugin.Plugin; @@ -349,7 +350,7 @@ public class CraftBlock implements Block { if (block != null) { block.dropNaturally(chunk.getHandle().world, x, y, z, data, 1.0F, 0); for (ItemStack item : getDrops()) { - breakNaturally(item); + block.finishDrop(chunk.getHandle().world, x, y, z, CraftItemStack.createNMSItemStack(item)); } return true; } |