add decoder for lighting output

This commit is contained in:
2025-03-15 12:23:40 -05:00
parent c4ceaa427a
commit 60dd149918
4 changed files with 59 additions and 1 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export default (bytes: Uint8Array, isLittleEndian: boolean = false): Universe =>
const size = view.getUint16(dataOffset, isLittleEndian);
dataOffset += 2;
if (size !== bytes.byteLength) {
if (size < bytes.byteLength) {
throw new Error('Universe module size mismatch');
}
const id = view.getUint16(dataOffset, isLittleEndian);