This commit is contained in:
Leijurv 2018-08-24 14:24:09 -07:00
parent cbec60472b
commit c51a65488a
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -110,7 +110,7 @@ public final class CachedWorld implements IBlockTypeAccess {
while (searchRadius <= maxRegionDistanceSq) { while (searchRadius <= maxRegionDistanceSq) {
for (int xoff = -searchRadius; xoff <= searchRadius; xoff++) { for (int xoff = -searchRadius; xoff <= searchRadius; xoff++) {
for (int zoff = -searchRadius; zoff <= searchRadius; zoff++) { for (int zoff = -searchRadius; zoff <= searchRadius; zoff++) {
double distance = xoff * xoff + zoff * zoff; int distance = xoff * xoff + zoff * zoff;
if (distance != searchRadius) { if (distance != searchRadius) {
continue; continue;
} }