scan loaded if not cached

This commit is contained in:
Leijurv 2018-09-16 13:28:16 -07:00
parent 5492dc59e2
commit 30fc72a34c
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -147,6 +147,9 @@ public final class MineBehavior extends Behavior implements Helper {
}
}
//System.out.println("Scan of cached chunks took " + (System.currentTimeMillis() - b) + "ms");
if (locs.isEmpty()) {
uninteresting = mining;
}
if (!uninteresting.isEmpty()) {
//long before = System.currentTimeMillis();
locs.addAll(WorldScanner.INSTANCE.scanLoadedChunks(uninteresting, max));