From 9d97c0d461e1af5e2068da68411678804c3fff06 Mon Sep 17 00:00:00 2001 From: TheMas3212 Date: Sun, 8 Oct 2023 02:18:57 +1100 Subject: Fix bug in TASD.toBuffer --- src/file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/file.ts b/src/file.ts index 78def41..2203e48 100644 --- a/src/file.ts +++ b/src/file.ts @@ -29,7 +29,7 @@ export class TASD { writeUint8(this.g_keylen, header, 6); const packets = [ header ]; if (this._isDirty) { - this.packets = this.packets.filter((packet) => packet.key === PACKET_TYPES.DUMP_LAST_MODIFIED); + this.packets = this.packets.filter((packet) => packet.key !== PACKET_TYPES.DUMP_LAST_MODIFIED); this.packets.push(new DumpLastModifiedPacket(BigInt(Date.now()))); } for (const packet of this.packets) { -- cgit v1.2.3