fix scan logic

This commit is contained in:
Leijurv 2018-09-20 14:09:13 -07:00
parent 4513a537db
commit 2cac115211
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -106,8 +106,8 @@ public enum WorldScanner implements Helper {
} }
} }
if ((allUnloaded && foundChunks) if ((allUnloaded && foundChunks)
|| res.size() >= max || (res.size() >= max
|| (searchRadiusSq > maxSearchRadiusSq || (searchRadiusSq > 1 && foundWithinY)) && (searchRadiusSq > maxSearchRadiusSq || (searchRadiusSq > 1 && foundWithinY)))
) { ) {
return res; return res;
} }