From 0575e2d6675f5e6dd323cc92ac662665f8009f2d Mon Sep 17 00:00:00 2001 From: Brady Date: Thu, 20 Sep 2018 13:52:29 -0500 Subject: [PATCH] Fix size parameter not being properly recognized by WorldScanner --- src/main/java/baritone/cache/WorldScanner.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/baritone/cache/WorldScanner.java b/src/main/java/baritone/cache/WorldScanner.java index 512661b0..106161f8 100644 --- a/src/main/java/baritone/cache/WorldScanner.java +++ b/src/main/java/baritone/cache/WorldScanner.java @@ -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++;