mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Really fixed Block.breakNaturally(). Fixes BUKKIT-1295
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
parent
f03c3bd1e9
commit
25b27ad27b
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue