mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
9ee989ea81
By: md_5 <git@md-5.net>
11 lines
753 B
Diff
11 lines
753 B
Diff
--- a/net/minecraft/world/level/block/BlockReed.java
|
|
+++ b/net/minecraft/world/level/block/BlockReed.java
|
|
@@ -56,7 +56,7 @@
|
|
int j = (Integer) iblockdata.getValue(BlockReed.AGE);
|
|
|
|
if (j == 15) {
|
|
- worldserver.setBlockAndUpdate(blockposition.above(), this.defaultBlockState());
|
|
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(worldserver, blockposition.above(), this.defaultBlockState()); // CraftBukkit
|
|
worldserver.setBlock(blockposition, (IBlockData) iblockdata.setValue(BlockReed.AGE, 0), 4);
|
|
} else {
|
|
worldserver.setBlock(blockposition, (IBlockData) iblockdata.setValue(BlockReed.AGE, j + 1), 4);
|