diff --git a/src/main/java/baritone/cache/WorldScanner.java b/src/main/java/baritone/cache/WorldScanner.java index 3487a0c1a..efed8af0f 100644 --- a/src/main/java/baritone/cache/WorldScanner.java +++ b/src/main/java/baritone/cache/WorldScanner.java @@ -28,9 +28,9 @@ import net.minecraft.world.chunk.BlockStateContainer; import net.minecraft.world.chunk.Chunk; import net.minecraft.world.chunk.storage.ExtendedBlockStorage; +import java.util.ArrayList; import java.util.Collection; import java.util.Collections; -import java.util.LinkedList; import java.util.List; public enum WorldScanner implements IWorldScanner { @@ -42,7 +42,7 @@ public enum WorldScanner implements IWorldScanner { if (blocks.contains(null)) { throw new IllegalStateException("Invalid block name should have been caught earlier: " + blocks.toString()); } - LinkedList res = new LinkedList<>(); + ArrayList res = new ArrayList<>(); if (blocks.isEmpty()) { return res; } @@ -99,7 +99,7 @@ public enum WorldScanner implements IWorldScanner { return Collections.emptyList(); } - LinkedList res = new LinkedList<>(); + ArrayList res = new ArrayList<>(); scanChunkInto(pos.x << 4, pos.z << 4, chunk, blocks, res, max, yLevelThreshold, playerY); return res; }