patterns/nbt: Added missing int array and long array tag (#79)

This commit is contained in:
Lenni0451
2023-02-03 21:55:52 +01:00
committed by GitHub
parent 25f73ca721
commit 41d801a114

View File

@@ -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;
NBT nbt @ 0x00;