mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-12 09:59:05 +02:00
World: Chunk: remove unnecessary level class member
This commit is contained in:
parent
0f6c467566
commit
16a1258f08
2 changed files with 2 additions and 6 deletions
|
@ -18,7 +18,8 @@ namespace MinedMap {
|
|||
namespace World {
|
||||
|
||||
Chunk::Chunk(const ChunkData *data) {
|
||||
level = assertValue(data->getRoot().get<NBT::CompoundTag>("Level"));
|
||||
std::shared_ptr<const NBT::CompoundTag> level =
|
||||
assertValue(data->getRoot().get<NBT::CompoundTag>("Level"));
|
||||
|
||||
std::shared_ptr<const NBT::ListTag> sectionsTag = level->get<NBT::ListTag>("Sections");
|
||||
if (!sectionsTag || sectionsTag->empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue