From fb097cbb79aef85b9731a53ae60f1bab474b5e32 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 25 May 2019 16:57:24 +0200 Subject: [PATCH] Chunk: allow Chunks with empty Sections tag --- src/World/Chunk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/World/Chunk.cpp b/src/World/Chunk.cpp index 50ac81e..7aea1f3 100644 --- a/src/World/Chunk.cpp +++ b/src/World/Chunk.cpp @@ -1,5 +1,5 @@ /* - Copyright (c) 2015-2018, Matthias Schiffer + Copyright (c) 2015-2019, Matthias Schiffer All rights reserved. Redistribution and use in source and binary forms, with or without @@ -39,7 +39,7 @@ Chunk::Chunk(const ChunkData *data) { level = assertValue(data->getRoot().get("Level")); std::shared_ptr sectionsTag = level->get("Sections"); - if (!sectionsTag) + if (!sectionsTag || sectionsTag->empty()) return; biomeBytes = level->get("Biomes");