mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
Fixed Block.breakNaturally(). Fixes BUKKIT-1295
This commit is contained in:
parent
cf2abd20e8
commit
b60a6743ed
1 changed files with 3 additions and 0 deletions
|
@ -348,6 +348,9 @@ public class CraftBlock implements Block {
|
||||||
setTypeId(Material.AIR.getId());
|
setTypeId(Material.AIR.getId());
|
||||||
if (block != null) {
|
if (block != null) {
|
||||||
block.dropNaturally(chunk.getHandle().world, x, y, z, data, 1.0F, 0);
|
block.dropNaturally(chunk.getHandle().world, x, y, z, data, 1.0F, 0);
|
||||||
|
for (ItemStack item : getDrops()) {
|
||||||
|
breakNaturally(item);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue