fix asteroid worldgen
This commit is contained in:
parent
928c07b439
commit
e607bcc020
1 changed files with 6 additions and 7 deletions
|
@ -124,7 +124,6 @@ public class GT_Worldgenerator
|
|||
String tDimensionName = this.mWorld.provider.getDimensionName();
|
||||
Random aRandom = new Random();
|
||||
if (((tDimensionType == 1) && endAsteroids && ((mEndAsteroidProbability <= 1) || (aRandom.nextInt(mEndAsteroidProbability) == 0))) || ((tDimensionName.equals("Asteroids")) && gcAsteroids && ((mGCAsteroidProbability <= 1) || (aRandom.nextInt(mGCAsteroidProbability) == 0)))) {
|
||||
|
||||
short primaryMeta = 0;
|
||||
short secondaryMeta = 0;
|
||||
short betweenMeta = 0;
|
||||
|
@ -193,16 +192,16 @@ public class GT_Worldgenerator
|
|||
if ((var39 * var39 + var42 * var42 + var45 * var45 < 1.0D) && (mWorld.getBlock(tX, tY, tZ).isAir(mWorld, tX, tY, tZ))) {
|
||||
int ranOre = aRandom.nextInt(50);
|
||||
if (ranOre < 3) {
|
||||
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, primaryMeta, false);
|
||||
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, primaryMeta, false, true);
|
||||
} else if (ranOre < 6) {
|
||||
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, secondaryMeta, false);
|
||||
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, secondaryMeta, false, true);
|
||||
} else if (ranOre < 8) {
|
||||
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, betweenMeta, false);
|
||||
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, betweenMeta, false, true);
|
||||
} else if (ranOre < 10) {
|
||||
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, sporadicMeta, false);
|
||||
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, sporadicMeta, false, true);
|
||||
} else {
|
||||
if (tDimensionType == -1) {
|
||||
mWorld.setBlock(eX, eY, eZ, Blocks.end_stone, 0, 0);
|
||||
if (tDimensionType == 1) {
|
||||
mWorld.setBlock(eX, eY, eZ, Blocks.end_stone, 0, 2);
|
||||
} else if (tDimensionName.equals("Asteroids")) {
|
||||
//int asteroidType = aRandom.nextInt(20);
|
||||
//if (asteroidType == 19) { //Rare Asteroid?
|
||||
|
|
Loading…
Reference in a new issue