[fix] Make sure we can have large distances
This commit is contained in:
parent
057e6de3de
commit
70b01dc00e
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue