Typo metoriteClusterChance

This commit is contained in:
thatsIch 2014-09-20 23:33:21 +02:00
parent e624f1632b
commit ad16153f07
2 changed files with 3 additions and 3 deletions

View file

@ -129,7 +129,7 @@ public class AEConfig extends Configuration implements IConfigurableObject, ICon
public boolean updatable = false; public boolean updatable = false;
final private File myPath; final private File myPath;
public double metoriteClusterChance = 0.1; public double meteoriteClusterChance = 0.1;
public double metoriteSpawnChance = 0.3; public double metoriteSpawnChance = 0.3;
public int craftingCalculationTimePerTick = 5; public int craftingCalculationTimePerTick = 5;
@ -235,7 +235,7 @@ public class AEConfig extends Configuration implements IConfigurableObject, ICon
spawnChargedChance = (float) (1.0 - get( "worldGen", "spawnChargedChance", 1.0 - spawnChargedChance ).getDouble( 1.0 - spawnChargedChance )); spawnChargedChance = (float) (1.0 - get( "worldGen", "spawnChargedChance", 1.0 - spawnChargedChance ).getDouble( 1.0 - spawnChargedChance ));
minMeteoriteDistance = get( "worldGen", "minMeteoriteDistance", minMeteoriteDistance ).getInt( minMeteoriteDistance ); minMeteoriteDistance = get( "worldGen", "minMeteoriteDistance", minMeteoriteDistance ).getInt( minMeteoriteDistance );
metoriteClusterChance = get( "worldGen", "metoriteClusterChance", metoriteClusterChance ).getDouble( metoriteClusterChance ); meteoriteClusterChance = get( "worldGen", "meteoriteClusterChance", meteoriteClusterChance ).getDouble( meteoriteClusterChance );
metoriteSpawnChance = get( "worldGen", "metoriteSpawnChance", metoriteSpawnChance ).getDouble( metoriteSpawnChance ); metoriteSpawnChance = get( "worldGen", "metoriteSpawnChance", metoriteSpawnChance ).getDouble( metoriteSpawnChance );
quartzOresPerCluster = get( "worldGen", "quartzOresPerCluster", quartzOresPerCluster ).getInt( quartzOresPerCluster ); quartzOresPerCluster = get( "worldGen", "quartzOresPerCluster", quartzOresPerCluster ).getInt( quartzOresPerCluster );
quartzOresClusterAmount = get( "worldGen", "quartzOresClusterAmount", quartzOresClusterAmount ).getInt( quartzOresClusterAmount ); quartzOresClusterAmount = get( "worldGen", "quartzOresClusterAmount", quartzOresClusterAmount ).getInt( quartzOresClusterAmount );

View file

@ -88,7 +88,7 @@ final public class MeteoriteWorldGen implements IWorldGenerator
minSqDist = Math.min( minSqDist, mp.getSqDistance( x, z ) ); minSqDist = Math.min( minSqDist, mp.getSqDistance( x, z ) );
} }
boolean isCluster = (minSqDist < 30 * 30) && Platform.getRandomFloat() < AEConfig.instance.metoriteClusterChance; boolean isCluster = (minSqDist < 30 * 30) && Platform.getRandomFloat() < AEConfig.instance.meteoriteClusterChance;
if ( minSqDist > AEConfig.instance.minMeteoriteDistanceSq || isCluster ) if ( minSqDist > AEConfig.instance.minMeteoriteDistanceSq || isCluster )
tryMetroite( w, depth, x, z ); tryMetroite( w, depth, x, z );