Config option for treeGrowthRate now affects leaves when less than one
@@ -116,9 +116,9 @@ public class BlockDynamicLeaves extends BlockLeaves implements ITreePart, IAgeab
@Override
public void updateTick(World worldIn, BlockPos pos, IBlockState state, Random rand) {
- //if(random.nextInt() % 4 == 0) {
+ if(ModConfigs.treeGrowthRateMultiplier < 1.0f && rand.nextFloat() < ModConfigs.treeGrowthRateMultiplier) {
age(worldIn, pos, state, rand, SafeChunkBounds.ANY);
- //}
+ }
}
