diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-13 23:54:51 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-13 23:54:51 -0600 |
commit | d3c4b954545eae9869f6347e1b6edc580210bfcd (patch) | |
tree | 87f96463a131b062eb2cf2a9aca47dec1d7c1e04 /build/cleaners/skyblock | |
parent | 0896aa90b031fcb7c5820e885baa10f984991392 (diff) | |
download | skyblock-api-d3c4b954545eae9869f6347e1b6edc580210bfcd.tar.gz skyblock-api-d3c4b954545eae9869f6347e1b6edc580210bfcd.tar.bz2 skyblock-api-d3c4b954545eae9869f6347e1b6edc580210bfcd.zip |
make sure the vanillaId is a string
Diffstat (limited to 'build/cleaners/skyblock')
-rw-r--r-- | build/cleaners/skyblock/inventory.js | 2 |
1 files changed, 1 insertions, 1 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 : [], |