mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 06:24:06 +01:00
12 lines
731 B
Diff
12 lines
731 B
Diff
--- a/net/minecraft/server/BlockReed.java
|
|
+++ b/net/minecraft/server/BlockReed.java
|
|
@@ -29,7 +29,7 @@
|
|
int j = ((Integer) iblockdata.get(BlockReed.AGE)).intValue();
|
|
|
|
if (j == 15) {
|
|
- world.setTypeUpdate(blockposition.up(), this.getBlockData());
|
|
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, blockposition.up(), this.getBlockData()); // CraftBukkit
|
|
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockReed.AGE, Integer.valueOf(0)), 4);
|
|
} else {
|
|
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockReed.AGE, Integer.valueOf(j + 1)), 4);
|