Fixed cached chunks not loading from file properly

This commit is contained in:
Brady 2018-08-07 01:11:49 -05:00
parent f047dd08b0
commit 8b63a3adad
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -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;