diff --git a/src/lib/nbt.cpp b/src/lib/nbt.cpp index 26ad964..c83afa4 100644 --- a/src/lib/nbt.cpp +++ b/src/lib/nbt.cpp @@ -395,8 +395,8 @@ namespace NBT { } else { nextTag = data[currentPosition]; } - // deal with compound tags separately - if (nextTag == TagType::COMPOUND || nextTag == TagType::LIST) return ErrorOr(false, ErrorCodes::NOT_YET_KNOWN); + // deal with compound tags and lists separately + if (nextTag == TagType::COMPOUND || nextTag == TagType::LIST) return ErrorOr(true, ErrorCodes::NOT_YET_KNOWN); // deal with end tag before trying to access the name if (nextTag == TagType::END) return ErrorOr(1);