fix scan logic
This commit is contained in:
parent
4513a537db
commit
2cac115211
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user