diff options
Diffstat (limited to 'src/cleaners')
-rw-r--r-- | src/cleaners/skyblock/inventory.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cleaners/skyblock/inventory.ts b/src/cleaners/skyblock/inventory.ts index df30be3..b5c85e2 100644 --- a/src/cleaners/skyblock/inventory.ts +++ b/src/cleaners/skyblock/inventory.ts @@ -21,6 +21,9 @@ export interface Item { anvilUses?: number timestamp?: string enchantments?: { [name: string]: number } + petInfo?: { + id: string + } headTexture?: string } @@ -54,6 +57,7 @@ function cleanItem(rawItem): Item | null { headId = headIdFromBase64(headDataBase64) } + return { id: extraAttributes?.id ?? null, count: itemCount ?? 1, @@ -70,6 +74,9 @@ function cleanItem(rawItem): Item | null { enchantments: extraAttributes?.enchantments, anvilUses: extraAttributes?.anvil_uses, timestamp: extraAttributes?.timestamp, + petInfo: extraAttributes?.petInfo ? { + id: JSON.parse(extraAttributes.petInfo).type + } : undefined, headTexture: headId, } |