diff --git a/core/AEConfig.java b/core/AEConfig.java index 700042289..c486dd9ad 100644 --- a/core/AEConfig.java +++ b/core/AEConfig.java @@ -123,7 +123,8 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo public boolean updateable = false; final private File myPath; - public double metoriteClusterChance = 0.1f; + public double metoriteClusterChance = 0.1; + public double metoriteSpawnChance = 0.3; @SubscribeEvent public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) @@ -227,6 +228,7 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo spawnChargedChance = (float) (1.0 - get( "worldGen", "spawnChargedChance", 1.0 - spawnChargedChance ).getDouble( 1.0 - spawnChargedChance )); minMeteoriteDistance = get( "worldGen", "minMeteoriteDistance", minMeteoriteDistance ).getInt( minMeteoriteDistance ); metoriteClusterChance = get( "worldGen", "metoriteClusterChance ", metoriteClusterChance ).getDouble( metoriteClusterChance ); + metoriteSpawnChance = get( "worldGen", "metoriteSpawnChance ", metoriteSpawnChance ).getDouble( metoriteSpawnChance ); quartzOresPerCluster = get( "worldGen", "quartzOresPerCluster", quartzOresPerCluster ).getInt( quartzOresPerCluster ); minMeteoriteDistanceSq = minMeteoriteDistance * minMeteoriteDistance; diff --git a/hooks/MeteoriteWorldGen.java b/hooks/MeteoriteWorldGen.java index e17871e52..f58de2594 100644 --- a/hooks/MeteoriteWorldGen.java +++ b/hooks/MeteoriteWorldGen.java @@ -41,7 +41,7 @@ final public class MeteoriteWorldGen implements IWorldGenerator if ( WorldGenRegistry.instance.isWorldGenEnabled( WorldGenType.Metorites, w ) ) { // add new metorites? - if ( r.nextFloat() > 0.7 ) + if ( r.nextFloat() < AEConfig.instance.metoriteSpawnChance ) { int x = r.nextInt( 16 ) + (chunkX << 4); int z = r.nextInt( 16 ) + (chunkZ << 4);