diff options
author | David Vierra <codewarrior@hawaii.rr.com> | 2018-01-25 05:47:16 -1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-25 05:47:16 -1000 |
commit | 47d85937fc6cbd00ffdd1f12c2259f65fb9302cb (patch) | |
tree | e357e27912d8578f408732a463837710bd1715d9 /src/main/java/gregtech/common/GT_Worldgenerator.java | |
parent | 220e2fb6d51b987307beb0e273b18301356e469f (diff) | |
download | GT5-Unofficial-47d85937fc6cbd00ffdd1f12c2259f65fb9302cb.tar.gz GT5-Unofficial-47d85937fc6cbd00ffdd1f12c2259f65fb9302cb.tar.bz2 GT5-Unofficial-47d85937fc6cbd00ffdd1f12c2259f65fb9302cb.zip |
Fix End Asteroid worldgen putting all asteroids in the center of the end
Diffstat (limited to 'src/main/java/gregtech/common/GT_Worldgenerator.java')
-rw-r--r-- | src/main/java/gregtech/common/GT_Worldgenerator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/GT_Worldgenerator.java b/src/main/java/gregtech/common/GT_Worldgenerator.java index 10076f7bd7..750159988a 100644 --- a/src/main/java/gregtech/common/GT_Worldgenerator.java +++ b/src/main/java/gregtech/common/GT_Worldgenerator.java @@ -415,9 +415,9 @@ implements IWorldGenerator { }
}
//if(GT_Values.D1)System.out.println("do asteroid gen: "+this.mX+" "+this.mZ);
- int tX = mX + aRandom.nextInt(16);
+ int tX = mX * 16 + aRandom.nextInt(16);
int tY = 50 + aRandom.nextInt(200 - 50);
- int tZ = mZ + aRandom.nextInt(16);
+ int tZ = mZ * 16 + aRandom.nextInt(16);
if (tDimensionType == 1) {
mSize = aRandom.nextInt((int) (endMaxSize - endMinSize));
//} else if (tDimensionName.equals("Asteroids")) {
|