aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/level/block/BlockReed.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/BlockReed.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/level/block/BlockReed.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/BlockReed.patch b/patch-remap/og/net/minecraft/world/level/block/BlockReed.patch
new file mode 100644
index 0000000000..332579a6d1
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/level/block/BlockReed.patch
@@ -0,0 +1,11 @@
+--- a/net/minecraft/world/level/block/BlockReed.java
++++ b/net/minecraft/world/level/block/BlockReed.java
+@@ -63,7 +63,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);