No longer waits for island to complete scanning.

This commit is contained in:
Harrison Deng 2020-05-17 01:11:35 -05:00
parent 69d10d8d5f
commit c420a610a3

View File

@ -59,6 +59,7 @@ public class IslandInformationManager {
if (islandMap.isIsland(worldX, worldZ)) {
IslandInformationBuilder infoBuilder = new IslandInformationBuilder();
Point2 origin = islandMap.findIslandOrigin(worldX, worldZ, (p) -> {
if (Thread.currentThread().isInterrupted()) return true;
if (!checkedCoordinates.add(p))
return true;
infoBuilder.addCoordinate(p, islandMap.isEdgeOfIsland(p.x, p.y));