From 4f5ad6e2cd8b737a8762776ce59d48928dafab34 Mon Sep 17 00:00:00 2001 From: Samsuik Date: Sun, 28 Sep 2025 17:02:54 +0100 Subject: [PATCH] Fix and update `use-random-chance-to-grow` --- .../net/minecraft/world/level/block/CactusBlock.java.patch | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sakura-server/minecraft-patches/sources/net/minecraft/world/level/block/CactusBlock.java.patch b/sakura-server/minecraft-patches/sources/net/minecraft/world/level/block/CactusBlock.java.patch index 7038d54..139e42d 100644 --- a/sakura-server/minecraft-patches/sources/net/minecraft/world/level/block/CactusBlock.java.patch +++ b/sakura-server/minecraft-patches/sources/net/minecraft/world/level/block/CactusBlock.java.patch @@ -20,15 +20,14 @@ BlockPos blockPos = pos.above(); if (level.isEmptyBlock(blockPos)) { int i = 1; -@@ -75,6 +_,12 @@ +@@ -75,6 +_,11 @@ } // Paper end BlockState blockState = state.setValue(AGE, 0); + // Sakura start - use random chance for crop growth; fix cactus growing next to a block and not breaking -+ // todo: 1.21.5 update -+ /*if (level.sakuraConfig().environment.crops.useRandomChanceToGrow) { ++ if (level.sakuraConfig().environment.crops.useRandomChanceToGrow) { + level.neighborShapeChanged(Direction.UP, blockPos, pos, state, 4, 1); -+ }*/ ++ } + // Sakura end - use random chance for crop growth; fix cactus growing next to a block and not breaking level.setBlock(pos, blockState, 260); level.neighborChanged(blockState, blockPos, this, null, false);