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);