fix NoiseLocator coordinates

This commit is contained in:
dfsek
2021-12-14 20:09:13 -07:00
parent 9cb0f1aeb8
commit 5d2e3f03fa

View File

@@ -30,7 +30,7 @@ public class NoiseLocator implements Locator {
long seed = column.getWorld().getSeed();
samplers.forEach(sampler -> {
int y = FastMath.floorToInt(sampler.noise(seed, column.getX(), column.getX()));
int y = FastMath.floorToInt(sampler.noise(seed, column.getX(), column.getZ()));
if(y >= column.getMaxY() || y < column.getMinY()) return;
results.set(y);
});