Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
Fix oregen
Dieser Commit ist enthalten in:
Ursprung
8ed67f66ad
Commit
83464013ba
@ -48,8 +48,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;
|
||||||
@ -107,7 +107,7 @@ public class OreGen extends Resource {
|
|||||||
double dxyz2 = dxy2 + dz * dz;
|
double dxyz2 = dxy2 + dz * dz;
|
||||||
if ((dxyz2 < 1)) {
|
if ((dxyz2 < 1)) {
|
||||||
if (mask.test(mutable))
|
if (mask.test(mutable))
|
||||||
extent.setBlock(xx, yy, zz, pattern.apply(mutable));
|
pattern.apply(extent, mutable, mutable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -266,8 +266,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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren