diff options
author | Keuin <[email protected]> | 2021-01-15 16:03:05 +0800 |
---|---|---|
committer | keuin <[email protected]> | 2021-01-15 16:03:05 +0800 |
commit | 1c745f43a3547241f23b4b29bfe3596889b21f3f (patch) | |
tree | a1f3e105c7763026b4c4d2d9b9968c9228b9331e /src/main/java/com/keuin/ohmyvanillamc/mixin/Mc113809SugarCaneBlockMixin.java | |
parent | 4a0e006c6e3dc63567d84e6bdb28839ea3380941 (diff) |
Implement MC-113809 (zero-tick plants farm) reintroduction (for cactus).
Diffstat (limited to 'src/main/java/com/keuin/ohmyvanillamc/mixin/Mc113809SugarCaneBlockMixin.java')
-rw-r--r-- | src/main/java/com/keuin/ohmyvanillamc/mixin/Mc113809SugarCaneBlockMixin.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/keuin/ohmyvanillamc/mixin/Mc113809SugarCaneBlockMixin.java b/src/main/java/com/keuin/ohmyvanillamc/mixin/Mc113809SugarCaneBlockMixin.java index 23d4507..63874cc 100644 --- a/src/main/java/com/keuin/ohmyvanillamc/mixin/Mc113809SugarCaneBlockMixin.java +++ b/src/main/java/com/keuin/ohmyvanillamc/mixin/Mc113809SugarCaneBlockMixin.java @@ -36,7 +36,7 @@ public abstract class Mc113809SugarCaneBlockMixin extends Block { public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) { if (OhMyVanillaMinecraft.getConfiguration().isReintroduceZeroTickFarm()) { scheduledTick(state, world, pos, random); - } else if (world.isAir(pos.up())) { + } else if (world.isAir(pos.up())) { // here goes 1.16.4 version randomTick impl. int i; for (i = 1; world.getBlockState(pos.down(i)).isOf((SugarCaneBlock) (Object) this); ++i) { } |