Slight performance tweak with leaves
@@ -136,8 +136,10 @@ public class BlockDynamicLeaves extends BlockLeaves implements ITreePart, IAgeab
//We should do this even if the hydro is only 1. Since there could be adjacent branch blocks that could use a leaves block
for(EnumFacing dir: EnumFacing.VALUES) {//Go on all 6 sides of this block
+ if(hydro > 1 || rand.nextInt(4) == 0 ) {//we'll give it a 1 in 4 chance to grow leaves if hydro is low to help performance
growLeaves(world, tree, pos.offset(dir));//Attempt to grow new leaves
}
+ }
return false;//Leaves were not destroyed
}
