mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-04-20 03:25:09 +02:00
Chunk: fix check for chunks with missing light data
This commit is contained in:
parent
1e14dabc2d
commit
d677440f6d
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Reference in a new issue