prune before checking size

This commit is contained in:
Logan Darklock 2019-08-30 17:20:20 -07:00
parent a6726f4e96
commit 69ca48287e
No known key found for this signature in database
GPG Key ID: B8C37CEDE1AC60EA

View File

@ -333,6 +333,8 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
} }
} }
locs = prune(ctx, locs, filter, max, blacklist);
if (!untracked.isEmpty() || (Baritone.settings().extendCacheOnThreshold.value && locs.size() < max)) { if (!untracked.isEmpty() || (Baritone.settings().extendCacheOnThreshold.value && locs.size() < max)) {
locs.addAll(WorldScanner.INSTANCE.scanChunkRadius( locs.addAll(WorldScanner.INSTANCE.scanChunkRadius(
ctx.getBaritone().getPlayerContext(), ctx.getBaritone().getPlayerContext(),