mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-27 10:49:06 +00:00
Fix and update use-random-chance-to-grow
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user