diff options
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockStem.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockStem.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/BlockStem.java b/src/main/java/net/minecraft/server/BlockStem.java index 38807777..8736f2cd 100644 --- a/src/main/java/net/minecraft/server/BlockStem.java +++ b/src/main/java/net/minecraft/server/BlockStem.java @@ -28,8 +28,7 @@ public class BlockStem extends BlockFlower { int l = world.getData(i, j, k); if (l < 7) { - ++l; - world.setData(i, j, k, l); + org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, i, j, k, this.id, ++l); // CraftBukkit } else { if (world.getTypeId(i - 1, j, k) == this.a.id) { return; @@ -70,7 +69,7 @@ public class BlockStem extends BlockFlower { int l1 = world.getTypeId(j1, j - 1, k1); if (world.getTypeId(j1, j, k1) == 0 && (l1 == Block.SOIL.id || l1 == Block.DIRT.id || l1 == Block.GRASS.id)) { - world.setTypeId(j1, j, k1, this.a.id); + org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, j1, j, k1, this.a.id, 0); // CraftBukkit } } } |