[fix] Make sure we can have large distances

This commit is contained in:
Frank 2022-06-21 18:44:05 +02:00
parent 057e6de3de
commit 70b01dc00e

View file

@ -332,7 +332,9 @@ public class BCLibEndBiomeSource extends BCLBiomeSource {
int posZ = QuartPos.toBlock(biomeZ);
long farEndBiomes = GeneratorOptions.getFarEndBiomes();
long dist = posX * posX + posZ * posZ;
long dist = Math.abs(posX) + Math.abs(posZ) > farEndBiomes
? (farEndBiomes + 1)
: (long) posX * (long) posX + (long) posZ * (long) posZ;
if ((biomeX & 63) == 0 && (biomeZ & 63) == 0) {
mapLand.clearCache();