summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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"));