mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-15 21:31:05 +00:00
getNoiseSeeded -> noise
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ public class Noise3DLocator implements Locator {
|
||||
int x = column.getX();
|
||||
int z = column.getZ();
|
||||
column.forEach(y -> {
|
||||
if(sampler.getNoiseSeeded(seed, x, y, z) > 0) results.set(y);
|
||||
if(sampler.noise(seed, x, y, z) > 0) results.set(y);
|
||||
});
|
||||
return results;
|
||||
}
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ public class NoiseLocator implements Locator {
|
||||
|
||||
long seed = column.getWorld().getSeed();
|
||||
samplers.forEach(sampler -> {
|
||||
int y = FastMath.floorToInt(sampler.getNoiseSeeded(seed, column.getX(), column.getX()));
|
||||
int y = FastMath.floorToInt(sampler.noise(seed, column.getX(), column.getX()));
|
||||
if(y >= column.getMaxY() || y < column.getMinY()) return;
|
||||
results.set(y);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user