From 8b63a3adad1a152cf7c46c0dade3cdfa2d89e0c7 Mon Sep 17 00:00:00 2001 From: Brady Date: Tue, 7 Aug 2018 01:11:49 -0500 Subject: [PATCH] Fixed cached chunks not loading from file properly --- src/main/java/baritone/bot/chunk/CachedChunk.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/bot/chunk/CachedChunk.java b/src/main/java/baritone/bot/chunk/CachedChunk.java index 74632fd0f..b6ace6a91 100644 --- a/src/main/java/baritone/bot/chunk/CachedChunk.java +++ b/src/main/java/baritone/bot/chunk/CachedChunk.java @@ -46,7 +46,7 @@ public final class CachedChunk implements IBlockTypeAccess { private final BitSet data; CachedChunk(int x, int z, BitSet data) { - if (data.size() != SIZE) + if (data.size() > SIZE) throw new IllegalArgumentException("BitSet of invalid length provided"); this.x = x;