summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheMas3212 <mas3212@gmail.com>2023-10-08 02:18:57 +1100
committerTheMas3212 <mas3212@gmail.com>2023-10-08 02:18:57 +1100
commit9d97c0d461e1af5e2068da68411678804c3fff06 (patch)
tree93e18dc75ccfd5ad8070020ec2dbabac098dcb9d
parentf56fea00ab8a4457bce4a5136c0a3b413ed48916 (diff)
downloadtasd-js-9d97c0d461e1af5e2068da68411678804c3fff06.tar.gz
tasd-js-9d97c0d461e1af5e2068da68411678804c3fff06.zip
Fix bug in TASD.toBuffer
-rw-r--r--src/file.ts2
1 files changed, 1 insertions, 1 deletions
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) {