2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/block/BlockReed.java
|
|
|
|
+++ b/net/minecraft/world/level/block/BlockReed.java
|
2023-12-05 17:40:00 +01:00
|
|
|
@@ -63,7 +63,7 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
int j = (Integer) iblockdata.getValue(BlockReed.AGE);
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
if (j == 15) {
|
2021-11-21 23:00:00 +01:00
|
|
|
- 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);
|
2018-07-15 02:00:00 +02:00
|
|
|
} else {
|
2021-11-21 23:00:00 +01:00
|
|
|
worldserver.setBlock(blockposition, (IBlockData) iblockdata.setValue(BlockReed.AGE, j + 1), 4);
|