Fix size parameter not being properly recognized by WorldScanner

This commit is contained in:
Brady 2018-09-20 13:52:29 -05:00
parent 37f00f3e14
commit 0575e2d667
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

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