Typo metorites
This commit is contained in:
parent
05fc12acba
commit
5f84c0826b
1 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ final public class MeteoriteWorldGen implements IWorldGenerator
|
||||||
{
|
{
|
||||||
if ( WorldGenRegistry.instance.isWorldGenEnabled( WorldGenType.Meteorites, w ) )
|
if ( WorldGenRegistry.instance.isWorldGenEnabled( WorldGenType.Meteorites, w ) )
|
||||||
{
|
{
|
||||||
// add new metorites?
|
// add new meteorites?
|
||||||
if ( r.nextFloat() < AEConfig.instance.meteoriteSpawnChance )
|
if ( r.nextFloat() < AEConfig.instance.meteoriteSpawnChance )
|
||||||
{
|
{
|
||||||
int x = r.nextInt( 16 ) + (chunkX << 4);
|
int x = r.nextInt( 16 ) + (chunkX << 4);
|
||||||
|
@ -91,7 +91,7 @@ final public class MeteoriteWorldGen implements IWorldGenerator
|
||||||
boolean isCluster = (minSqDist < 30 * 30) && Platform.getRandomFloat() < AEConfig.instance.meteoriteClusterChance;
|
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 );
|
tryMeteorite( w, depth, x, z );
|
||||||
|
|
||||||
WorldSettings.getInstance().setGenerated( w.provider.dimensionId, chunkX, chunkZ );
|
WorldSettings.getInstance().setGenerated( w.provider.dimensionId, chunkX, chunkZ );
|
||||||
WorldSettings.getInstance().getCompass().updateArea( w, chunkX, chunkZ );
|
WorldSettings.getInstance().getCompass().updateArea( w, chunkX, chunkZ );
|
||||||
|
@ -100,7 +100,7 @@ final public class MeteoriteWorldGen implements IWorldGenerator
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean tryMetroite(World w, int depth, int x, int z)
|
private boolean tryMeteorite(World w, int depth, int x, int z)
|
||||||
{
|
{
|
||||||
for (int trys = 0; trys < 20; trys++)
|
for (int trys = 0; trys < 20; trys++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue