summaryrefslogtreecommitdiffstats
path: root/src/World
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-09-19 14:44:51 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-09-19 14:44:51 +0200
commitd677440f6d8487a4eca613803aff0e091dcd71f3 (patch)
tree5b10066d7187922094c8a69961f5665af8c00bca /src/World
parent1e14dabc2d9771af24420b669ac43f16600d769c (diff)
downloadMinedMap-d677440f6d8487a4eca613803aff0e091dcd71f3.tar
MinedMap-d677440f6d8487a4eca613803aff0e091dcd71f3.zip
Chunk: fix check for chunks with missing light data
Diffstat (limited to 'src/World')
-rw-r--r--src/World/Chunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/World/Chunk.cpp b/src/World/Chunk.cpp
index cdc2806..dae66ff 100644
--- a/src/World/Chunk.cpp
+++ b/src/World/Chunk.cpp
@@ -99,7 +99,7 @@ void Chunk::parseChunk() {
void Chunk::analyzeChunk() {
std::shared_ptr<const NBT::ByteTag> lightPopulatedTag = level->get<NBT::ByteTag>("LightPopulated");
- if (!lightPopulatedTag && lightPopulatedTag->getValue())
+ if (!(lightPopulatedTag && lightPopulatedTag->getValue()))
throw std::invalid_argument("light data missing");
sections = assertValue(level->get<NBT::ListTag<NBT::CompoundTag>>("Sections"));