mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-05 17:44:52 +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() {
|
||||
Buffer nbt(data.get(), len);
|
||||
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");
|
||||
|
||||
root = assertValue(std::dynamic_pointer_cast<const NBT::CompoundTag>(tag.second));
|
||||
|
|
Loading…
Add table
Reference in a new issue