feat(import): Consumables
All checks were successful
Build / build (20) (push) Successful in 35s
Build / build (22) (push) Successful in 1m10s
Build / build (18) (push) Successful in 53s
Build / build (18) (pull_request) Successful in 36s
Build / build (20) (pull_request) Successful in 51s
Build / build (22) (pull_request) Successful in 1m9s

This commit is contained in:
Sainan 2025-02-04 12:25:02 +01:00
parent c1fcd3042e
commit e4d06c62a6

View File

@ -155,7 +155,7 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
if (client.Upgrades !== undefined) {
replaceArray<IUpgradeDatabase>(db.Upgrades, client.Upgrades.map(convertUpgrade));
}
for (const key of ["RawUpgrades", "MiscItems"] as const) {
for (const key of ["RawUpgrades", "MiscItems", "Consumables"] as const) {
if (client[key] !== undefined) {
db[key].splice(0, db[key].length);
client[key].forEach(x => {