mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-04 17:23:33 +01:00
Chunk: allow Chunks with empty Sections tag
This commit is contained in:
parent
3c92f58110
commit
fb097cbb79
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright (c) 2015-2018, Matthias Schiffer <mschiffer@universe-factory.net>
|
||||
Copyright (c) 2015-2019, Matthias Schiffer <mschiffer@universe-factory.net>
|
||||
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<NBT::CompoundTag>("Level"));
|
||||
|
||||
std::shared_ptr<const NBT::ListTag> sectionsTag = level->get<NBT::ListTag>("Sections");
|
||||
if (!sectionsTag)
|
||||
if (!sectionsTag || sectionsTag->empty())
|
||||
return;
|
||||
|
||||
biomeBytes = level->get<NBT::ByteArrayTag>("Biomes");
|
||||
|
|
Loading…
Add table
Reference in a new issue