From 9023723a0e868ef842a202f87eeeaba51b81b22f Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 14 Sep 2018 07:38:57 +1000 Subject: [PATCH] Fix oregen --- .../java/com/boydti/fawe/jnbt/anvil/generator/OreGen.java | 4 ++-- core/src/main/java/com/sk89q/worldedit/extent/Extent.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/boydti/fawe/jnbt/anvil/generator/OreGen.java b/core/src/main/java/com/boydti/fawe/jnbt/anvil/generator/OreGen.java index dcdb8bfe..eebf7edc 100644 --- a/core/src/main/java/com/boydti/fawe/jnbt/anvil/generator/OreGen.java +++ b/core/src/main/java/com/boydti/fawe/jnbt/anvil/generator/OreGen.java @@ -46,8 +46,8 @@ public class OreGen extends Resource { } double f = rand.nextDouble() * Math.PI; - int x8 = x + 8; - int z8 = z + 8; + int x8 = x; + int z8 = z; double so8 = maxSizeO8; double so16 = maxSizeO16; double sf = MathMan.sinInexact(f) * so8; diff --git a/core/src/main/java/com/sk89q/worldedit/extent/Extent.java b/core/src/main/java/com/sk89q/worldedit/extent/Extent.java index 9d0a011c..3bd68061 100644 --- a/core/src/main/java/com/sk89q/worldedit/extent/Extent.java +++ b/core/src/main/java/com/sk89q/worldedit/extent/Extent.java @@ -235,8 +235,8 @@ public interface Extent extends InputExtent, OutputExtent { if (random.nextInt(100) > rarity) { continue; } - int x = (chunkPos.getBlockX() << 4) + PseudoRandom.random.nextInt(16); - int z = (chunkPos.getBlockZ() << 4) + PseudoRandom.random.nextInt(16); + int x = (chunkPos.getBlockX() << 4) + random.nextInt(16); + int z = (chunkPos.getBlockZ() << 4) + random.nextInt(16); gen.spawn(random, x, z); } }