fix asteroid worldgen

This commit is contained in:
Blood-Asp 2016-09-30 00:31:43 +02:00
parent 928c07b439
commit e607bcc020

View file

@ -124,7 +124,6 @@ public class GT_Worldgenerator
String tDimensionName = this.mWorld.provider.getDimensionName(); String tDimensionName = this.mWorld.provider.getDimensionName();
Random aRandom = new Random(); Random aRandom = new Random();
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)))) {
short primaryMeta = 0; short primaryMeta = 0;
short secondaryMeta = 0; short secondaryMeta = 0;
short betweenMeta = 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))) { if ((var39 * var39 + var42 * var42 + var45 * var45 < 1.0D) && (mWorld.getBlock(tX, tY, tZ).isAir(mWorld, tX, tY, tZ))) {
int ranOre = aRandom.nextInt(50); int ranOre = aRandom.nextInt(50);
if (ranOre < 3) { 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) { } 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) { } 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) { } 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 { } else {
if (tDimensionType == -1) { if (tDimensionType == 1) {
mWorld.setBlock(eX, eY, eZ, Blocks.end_stone, 0, 0); mWorld.setBlock(eX, eY, eZ, Blocks.end_stone, 0, 2);
} else if (tDimensionName.equals("Asteroids")) { } else if (tDimensionName.equals("Asteroids")) {
//int asteroidType = aRandom.nextInt(20); //int asteroidType = aRandom.nextInt(20);
//if (asteroidType == 19) { //Rare Asteroid? //if (asteroidType == 19) { //Rare Asteroid?