aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cleaners/skyblock/inventory.ts4
1 files changed, 2 insertions, 2 deletions
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',