Fix oregen

This commit is contained in:
Jesse Boyd 2018-09-14 07:38:57 +10:00
parent 406bc9c017
commit 9023723a0e
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 4 additions and 4 deletions

View File

@ -46,8 +46,8 @@ public class OreGen extends Resource {
} }
double f = rand.nextDouble() * Math.PI; double f = rand.nextDouble() * Math.PI;
int x8 = x + 8; int x8 = x;
int z8 = z + 8; int z8 = z;
double so8 = maxSizeO8; double so8 = maxSizeO8;
double so16 = maxSizeO16; double so16 = maxSizeO16;
double sf = MathMan.sinInexact(f) * so8; double sf = MathMan.sinInexact(f) * so8;

View File

@ -235,8 +235,8 @@ public interface Extent extends InputExtent, OutputExtent {
if (random.nextInt(100) > rarity) { if (random.nextInt(100) > rarity) {
continue; continue;
} }
int x = (chunkPos.getBlockX() << 4) + PseudoRandom.random.nextInt(16); int x = (chunkPos.getBlockX() << 4) + random.nextInt(16);
int z = (chunkPos.getBlockZ() << 4) + PseudoRandom.random.nextInt(16); int z = (chunkPos.getBlockZ() << 4) + random.nextInt(16);
gen.spawn(random, x, z); gen.spawn(random, x, z);
} }
} }