mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 14:50:56 +00:00
remove unneeded floorToInt in BiomePipelineProvider
This commit is contained in:
+7
-2
@@ -86,9 +86,9 @@ public class BiomePipelineProvider implements BiomeProvider {
|
|||||||
z += mutator.noise(seed + 2, x, z) * noiseAmp;
|
z += mutator.noise(seed + 2, x, z) * noiseAmp;
|
||||||
|
|
||||||
|
|
||||||
x = FastMath.floorToInt(FastMath.floorDiv(x, resolution));
|
x = FastMath.floorDiv(x, resolution);
|
||||||
|
|
||||||
z = FastMath.floorToInt(FastMath.floorDiv(z, resolution));
|
z = FastMath.floorDiv(z, resolution);
|
||||||
|
|
||||||
int fdX = FastMath.floorDiv(x, pipeline.getSize());
|
int fdX = FastMath.floorDiv(x, pipeline.getSize());
|
||||||
int fdZ = FastMath.floorDiv(z, pipeline.getSize());
|
int fdZ = FastMath.floorDiv(z, pipeline.getSize());
|
||||||
@@ -111,6 +111,11 @@ public class BiomePipelineProvider implements BiomeProvider {
|
|||||||
return new BiomePipelineColumn(this, min, max, x, z, seed);
|
return new BiomePipelineColumn(this, min, max, x, z, seed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int resolution() {
|
||||||
|
return resolution;
|
||||||
|
}
|
||||||
|
|
||||||
private record SeededVector(int x, int z, long seed) {
|
private record SeededVector(int x, int z, long seed) {
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
|
|||||||
Reference in New Issue
Block a user