aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/NetherWartBlock.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/NetherWartBlock.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/NetherWartBlock.java.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/NetherWartBlock.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/NetherWartBlock.java.patch
new file mode 100644
index 0000000000..07d93631f7
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/NetherWartBlock.java.patch
@@ -0,0 +1,15 @@
+--- a/net/minecraft/world/level/block/NetherWartBlock.java
++++ b/net/minecraft/world/level/block/NetherWartBlock.java
+@@ -57,9 +52,9 @@
+ public void randomTick(BlockState blockstate, ServerLevel serverlevel, BlockPos blockpos, RandomSource randomsource) {
+ int i = (Integer) blockstate.getValue(NetherWartBlock.AGE);
+
+- if (i < 3 && randomsource.nextInt(10) == 0) {
+- blockstate = (BlockState) blockstate.setValue(NetherWartBlock.AGE, i + 1);
+- serverlevel.setBlock(blockpos, blockstate, 2);
++ if (i < 3 && random.nextInt(10) == 0) {
++ state = (IBlockData) state.setValue(NetherWartBlock.AGE, i + 1);
++ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(level, pos, state, 2); // CraftBukkit
+ }
+
+ }