diff options
-rw-r--r-- | build/cleaners/skyblock/inventory.js | 2 | ||||
-rw-r--r-- | src/cleaners/skyblock/inventory.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/build/cleaners/skyblock/inventory.js b/build/cleaners/skyblock/inventory.js index 28929bd..9daa717 100644 --- a/build/cleaners/skyblock/inventory.js +++ b/build/cleaners/skyblock/inventory.js @@ -34,7 +34,7 @@ function cleanItem(rawItem) { return { id: (_b = extraAttributes === null || extraAttributes === void 0 ? void 0 : extraAttributes.id) !== null && _b !== void 0 ? _b : null, count: itemCount !== null && itemCount !== void 0 ? itemCount : 1, - vanillaId: damageValue ? `${vanillaId}:${damageValue}` : vanillaId, + vanillaId: damageValue ? `${vanillaId}:${damageValue}` : vanillaId.toString(), display: { name: (_d = (_c = itemTag === null || itemTag === void 0 ? void 0 : itemTag.display) === null || _c === void 0 ? void 0 : _c.Name) !== null && _d !== void 0 ? _d : 'null', lore: (_f = (_e = itemTag === null || itemTag === void 0 ? void 0 : itemTag.display) === null || _e === void 0 ? void 0 : _e.Lore) !== null && _f !== void 0 ? _f : [], diff --git a/src/cleaners/skyblock/inventory.ts b/src/cleaners/skyblock/inventory.ts index 342ece6..1b49e95 100644 --- a/src/cleaners/skyblock/inventory.ts +++ b/src/cleaners/skyblock/inventory.ts @@ -27,7 +27,7 @@ interface Item { export type Inventory = Item[] function cleanItem(rawItem): Item { - const vanillaId = rawItem.id + const vanillaId: number = rawItem.id const itemCount = rawItem.Count const damageValue = rawItem.Damage const itemTag = rawItem.tag @@ -35,7 +35,7 @@ function cleanItem(rawItem): Item { return { id: extraAttributes?.id ?? null, count: itemCount ?? 1, - vanillaId: damageValue ? `${vanillaId}:${damageValue}` : vanillaId, + vanillaId: damageValue ? `${vanillaId}:${damageValue}` : vanillaId.toString(), display: { name: itemTag?.display?.Name ?? 'null', |