remove unneeded floorToInt in BiomePipelineProvider

This commit is contained in:
dfsek
2022-06-15 21:49:24 -07:00
parent b7c381b0f9
commit 72ad5b65df

View File

@@ -86,9 +86,9 @@ public class BiomePipelineProvider implements BiomeProvider {
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 fdZ = FastMath.floorDiv(z, pipeline.getSize());
@@ -111,6 +111,11 @@ public class BiomePipelineProvider implements BiomeProvider {
return new BiomePipelineColumn(this, min, max, x, z, seed);
}
@Override
public int resolution() {
return resolution;
}
private record SeededVector(int x, int z, long seed) {
@Override
public boolean equals(Object obj) {