Change mod packs to datastore

This commit is contained in:
Cooldude2606 committed 2024-05-19 01:41:28 +01:00
1 parent 80b4a96e85
commit 6b11fb810a
4 files changed
+20 -26

No files matched your search

+10
View File
@@ -189,6 +189,11 @@ export class Datastore<
this.data.set(k, v);
}
}
// Delete a value in the datastore
delete(key: K) {
this.data.delete(key);
}
}
// A special implementation of the datastore to work directly with subscribable values
@@ -212,4 +217,9 @@ export class SubscribableDatastore<
this.data.set(value.id, value);
}
}
// Delete a value in the datastore
delete(value: V) {
this.data.delete(value.id);
}
}