Better logging for oregen
This commit is contained in:
parent
f030951982
commit
b5626433b9
2 changed files with 3 additions and 3 deletions
|
@ -113,7 +113,7 @@ public class GT_Worldgen_GT_Ore_Layer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (GT_Values.D1) {
|
if (GT_Values.D1) {
|
||||||
System.out.println("Generated Orevein: " + this.mWorldGenName);
|
System.out.println("Generated Orevein: " + this.mWorldGenName+" "+aChunkX +" "+ aChunkZ);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ package gregtech.common;
|
||||||
import cpw.mods.fml.common.IWorldGenerator;
|
import cpw.mods.fml.common.IWorldGenerator;
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import gregtech.api.GregTech_API;
|
import gregtech.api.GregTech_API;
|
||||||
|
import gregtech.api.enums.GT_Values;
|
||||||
import gregtech.api.objects.XSTR;
|
import gregtech.api.objects.XSTR;
|
||||||
import gregtech.api.util.GT_Log;
|
import gregtech.api.util.GT_Log;
|
||||||
import gregtech.api.world.GT_Worldgen;
|
import gregtech.api.world.GT_Worldgen;
|
||||||
|
@ -116,9 +117,7 @@ public class GT_Worldgenerator
|
||||||
int tDimensionType = this.mWorld.provider.dimensionId;
|
int tDimensionType = this.mWorld.provider.dimensionId;
|
||||||
String tDimensionName = this.mWorld.provider.getDimensionName();
|
String tDimensionName = this.mWorld.provider.getDimensionName();
|
||||||
Random aRandom = new Random();
|
Random aRandom = new Random();
|
||||||
System.out.println("try asteroid gen");
|
|
||||||
if (((tDimensionType == 1) && endAsteroids && ((mEndAsteroidProbability <= 1) || (aRandom.nextInt(mEndAsteroidProbability) == 0))) || ((tDimensionName.equals("Asteroids")) && gcAsteroids && ((mGCAsteroidProbability <= 1) || (aRandom.nextInt(mGCAsteroidProbability) == 0)))) {
|
if (((tDimensionType == 1) && endAsteroids && ((mEndAsteroidProbability <= 1) || (aRandom.nextInt(mEndAsteroidProbability) == 0))) || ((tDimensionName.equals("Asteroids")) && gcAsteroids && ((mGCAsteroidProbability <= 1) || (aRandom.nextInt(mGCAsteroidProbability) == 0)))) {
|
||||||
System.out.println("do asteroid gen: "+this.mX+" "+this.mZ);
|
|
||||||
short primaryMeta = 0;
|
short primaryMeta = 0;
|
||||||
short secondaryMeta = 0;
|
short secondaryMeta = 0;
|
||||||
short betweenMeta = 0;
|
short betweenMeta = 0;
|
||||||
|
@ -147,6 +146,7 @@ public class GT_Worldgenerator
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(GT_Values.D1)System.out.println("do asteroid gen: "+this.mX+" "+this.mZ);
|
||||||
int tX = mX + aRandom.nextInt(16);
|
int tX = mX + aRandom.nextInt(16);
|
||||||
int tY = 50 + aRandom.nextInt(200 - 50);
|
int tY = 50 + aRandom.nextInt(200 - 50);
|
||||||
int tZ = mZ + aRandom.nextInt(16);
|
int tZ = mZ + aRandom.nextInt(16);
|
||||||
|
|
Loading…
Reference in a new issue