diff --git a/patterns/nbt.hexpat b/patterns/nbt.hexpat index 8d84743..0190c4b 100644 --- a/patterns/nbt.hexpat +++ b/patterns/nbt.hexpat @@ -45,6 +45,12 @@ struct Value { Value values[listLength] [[static]]; } else if (parent.tag == Tag::Compound) { Element values[while(true)]; + } else if (parent.tag == Tag::IntArray){ + s32 arrayLength; + s32 value[arrayLength] [[sealed]]; + } else if (parent.tag == Tag::LongArray) { + s32 arrayLength; + s64 value[arrayLength] [[sealed]]; } else { std::error(std::format("Invalid tag {:02X}", TypeTag)); } @@ -67,4 +73,4 @@ struct NBT { Element element[while(true)] [[inline]]; }; -NBT nbt @ 0x00; \ No newline at end of file +NBT nbt @ 0x00;