mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-20 15:27:24 +00:00
fix NoiseLocator coordinates
This commit is contained in:
1 parent
9cb0f1aeb8
commit
5d2e3f03fa
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user