fixed end asteroids spawning with red granite texture

This commit is contained in:
Blood-Asp 2015-12-13 17:24:34 +01:00
parent 70e652420d
commit 8659c9573c

View file

@ -119,7 +119,7 @@ public class GT_Worldgenerator
int tDimensionType = this.mWorld.provider.dimensionId;
Random aRandom = new Random();
if (((tDimensionType == 1) && endAsteroids && ((mEndAsteroidProbability <= 1) || (aRandom.nextInt(mEndAsteroidProbability) == 0)))) {
short primaryMeta = 0;
short primaryMeta = 0;
short secondaryMeta = 0;
short betweenMeta = 0;
short sporadicMeta = 0;
@ -185,19 +185,14 @@ 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 + (tDimensionType == -30 ? 4000 : 2000), true);
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, primaryMeta , true);
} else if (ranOre < 6) {
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, secondaryMeta + (tDimensionType == -30 ? 4000 : 2000), true);
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, secondaryMeta , true);
} else if (ranOre < 8) {
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, betweenMeta + (tDimensionType == -30 ? 4000 : 2000), true);
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, betweenMeta , true);
} else if (ranOre < 10) {
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, sporadicMeta + (tDimensionType == -30 ? 4000 : 2000), true);
} else {
if (tDimensionType == -30) {
mWorld.setBlock(eX, eY, eZ, GregTech_API.sBlockGranites, 8, 3);
} else {
mWorld.setBlock(eX, eY, eZ, Blocks.end_stone, 0, 0);
}
GT_TileEntity_Ores.setOreBlock(mWorld, eX, eY, eZ, sporadicMeta , true);
} else {mWorld.setBlock(eX, eY, eZ, Blocks.end_stone, 0, 0);
}
}
}