Skip to content
Permalink
Browse files

Support empty chunks

  • Loading branch information...
ferrybig committed Mar 8, 2019
1 parent 2670a27 commit a3a7a2c55319bef7af6419237560ced98cde8707
@@ -119,6 +119,9 @@ private static int calculateChunkPos(int rawChunkLocation) {

private void renderChunk(CompoundTag levelTag, int localX, int localZ, BufferedImage image) throws ExecutionException {
ListTag<?> sections = (ListTag<?>) levelTag.getValue().get("Sections");
if(sections == null) {
return; // This is an empty chunk
}
ChunkSection[] chunkSections = new ChunkSection[MAX_CHUNK_SECTIONS];
Arrays.fill(chunkSections, this.emptyChunkSection);
int maxY = 0;

0 comments on commit a3a7a2c

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.