fixed worldgen crash with fruit gen feature
@@ -78,7 +78,7 @@ public class FruitGenFeature extends GenFeature implements IPostGrowFeature, IPo
protected void addFruit(ConfiguredGenFeature<?> configuredGenFeature, IWorld world, Species species, BlockPos treePos, BlockPos branchPos, boolean worldGen, boolean enableHash, SafeChunkBounds safeBounds, Float seasonValue) {
BlockPos fruitPos = CoordUtils.getRayTraceFruitPos(world, species, treePos, branchPos, safeBounds);
if(fruitPos != BlockPos.ZERO &&
- !enableHash || ((CoordUtils.coordHashCode(fruitPos, 0) & 3) == 0) &&
+ (!enableHash || ((CoordUtils.coordHashCode(fruitPos, 0) & 3) == 0)) &&
world.getRandom().nextFloat() <= configuredGenFeature.get(PLACE_CHANCE)) {
FruitBlock fruitBlock = configuredGenFeature.get(FRUIT_BLOCK);
BlockState setState = fruitBlock.getStateForAge(worldGen ? fruitBlock.getAgeForSeasonalWorldGen(world, fruitPos, seasonValue) : 0);
