mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
Fixed bonemeal not being consumed on failed growth attempts. This fixes BUKKIT-337. Thanks to md-5 for the pull request!
This commit is contained in:
@@ -70,6 +70,9 @@ public class BlockSapling extends BlockFlower {
|
||||
if (event == null) {
|
||||
return;
|
||||
}
|
||||
if (event.isFromBonemeal() && itemstack != null) {
|
||||
--itemstack.count;
|
||||
}
|
||||
if (!grownTree || event.isCancelled()) {
|
||||
world.setRawTypeIdAndData(i, j, k, this.id, l);
|
||||
}
|
||||
@@ -82,6 +85,7 @@ public class BlockSapling extends BlockFlower {
|
||||
|
||||
// CraftBukkit start
|
||||
private class BlockChangeWithNotify implements BlockChangeDelegate {
|
||||
|
||||
World world;
|
||||
|
||||
BlockChangeWithNotify(World world) {
|
||||
|
Reference in New Issue
Block a user