diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-14 14:07:10 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-14 14:07:10 -0600 |
commit | eedd4ff7a3f2816c8e0d3f037c7a1acbb5988495 (patch) | |
tree | 39a5e242c360f735e28889da22187b9471ed8dc1 /src/cleaners/skyblock/inventory.ts | |
parent | a12f0eaf3349160282bdc9f48cf9f253a154e500 (diff) | |
download | skyblock-api-eedd4ff7a3f2816c8e0d3f037c7a1acbb5988495.tar.gz skyblock-api-eedd4ff7a3f2816c8e0d3f037c7a1acbb5988495.tar.bz2 skyblock-api-eedd4ff7a3f2816c8e0d3f037c7a1acbb5988495.zip |
add collections
Diffstat (limited to 'src/cleaners/skyblock/inventory.ts')
-rw-r--r-- | src/cleaners/skyblock/inventory.ts | 4 |
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 |