aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock/inventory.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/cleaners/skyblock/inventory.ts')
-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 96cd629..ed9b5ed 100644
--- a/src/cleaners/skyblock/inventory.ts
+++ b/src/cleaners/skyblock/inventory.ts
@@ -21,7 +21,6 @@ interface Item {
enchantments?: { [ name: string ]: number }
skull_owner?: string
-
}
export type Inventory = Item[]
@@ -29,7 +28,8 @@ export type Inventory = Item[]
function cleanItem(rawItem): Item {
// if the item doesn't have an id, it isn't an item
if (rawItem.id === undefined) return null
- const vanillaId: number = rawItem.id && -1
+
+ const vanillaId: number = rawItem.id
const itemCount = rawItem.Count
const damageValue = rawItem.Damage
const itemTag = rawItem.tag