fix fabric stuff

This commit is contained in:
dfsek
2021-01-20 18:49:45 -07:00
parent 7b6d195615
commit 5b8beebaa3
5 changed files with 6 additions and 7 deletions

View File

@@ -1642,7 +1642,7 @@ public class FastNoiseLite implements NoiseSampler {
return lerp(xf0, xf1, ys) * 1.4247691104677813;
}
long murmur64(long h) {
private long murmur64(long h) {
h ^= h >>> 33;
h *= 0xff51afd7ed558ccdL;
h ^= h >>> 33;

View File

@@ -27,7 +27,6 @@ public class ImageBiomeProvider implements BiomeProvider {
@Override
public TerraBiome getBiome(int x, int z) {
Color color = new Color(image.getRGB(FastMath.floorMod(x / resolution, image.getWidth()), FastMath.floorMod(z / resolution, image.getHeight())));
return colorBiomeMap.get(colorBiomeMap.keySet().stream().reduce(colorBiomeMap.keySet().stream().findAny().orElseThrow(IllegalStateException::new), (running, element) -> {
int d1 = distance(color, running);
int d2 = distance(color, element);