mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-15 21:31:05 +00:00
fix NoiseLocator coordinates
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ public class NoiseLocator implements Locator {
|
|||||||
|
|
||||||
long seed = column.getWorld().getSeed();
|
long seed = column.getWorld().getSeed();
|
||||||
samplers.forEach(sampler -> {
|
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;
|
if(y >= column.getMaxY() || y < column.getMinY()) return;
|
||||||
results.set(y);
|
results.set(y);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user