mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-06 01:54:51 +01:00
Fix clang-tidy warning about NBT tag
This commit is contained in:
parent
a22093ddaa
commit
0a1b41cafc
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ void ChunkData::inflateChunk(Buffer buffer) {
|
||||||
void ChunkData::parseChunk() {
|
void ChunkData::parseChunk() {
|
||||||
Buffer nbt(data.get(), len);
|
Buffer nbt(data.get(), len);
|
||||||
std::pair<std::string, std::shared_ptr<const NBT::Tag>> tag = NBT::Tag::readNamedTag(&nbt);
|
std::pair<std::string, std::shared_ptr<const NBT::Tag>> tag = NBT::Tag::readNamedTag(&nbt);
|
||||||
if (tag.first != "")
|
if (!tag.first.empty())
|
||||||
throw std::invalid_argument("invalid root tag");
|
throw std::invalid_argument("invalid root tag");
|
||||||
|
|
||||||
root = assertValue(std::dynamic_pointer_cast<const NBT::CompoundTag>(tag.second));
|
root = assertValue(std::dynamic_pointer_cast<const NBT::CompoundTag>(tag.second));
|
||||||
|
|
Loading…
Add table
Reference in a new issue