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:
Nathan Adams
2011-12-19 16:41:55 +00:00
parent 246d07482b
commit 972b2087f2
7 changed files with 9 additions and 17 deletions

View File

@@ -124,9 +124,6 @@ public class WorldGenTrees extends WorldGenerator {
for (BlockState state : event.getBlocks()) {
state.update(true);
}
if (event.isFromBonemeal() && itemstack != null) {
--itemstack.count;
}
}
}
// Craftbukkit end