Better height estimation for 1.18+

This commit is contained in:
Cubitect 2023-01-05 14:24:46 +01:00
parent 47b45a33f2
commit 49658d7100

View File

@ -557,7 +557,7 @@ int mapApproxHeight(int *y, int *ids, const Generator *g, const SurfaceNoise *sn
int id = sampleBiomeNoise(&g->bn, np, x+i, 0, z+j, 0, flags);
if (ids)
ids[j*w+i] = id;
y[j*w+i] = (np[NP_DEPTH] + 64) / 128 + 25;
y[j*w+i] = np[NP_DEPTH] / 76;
}
}
return 0;