diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/cleaners/skyblock/inventory.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/build/cleaners/skyblock/inventory.js b/build/cleaners/skyblock/inventory.js index 6892c6e..c2bb3f6 100644 --- a/build/cleaners/skyblock/inventory.js +++ b/build/cleaners/skyblock/inventory.js @@ -83,12 +83,13 @@ async function cleanInventories(data) { const hypixelInventoryName = exports.INVENTORIES[cleanInventoryName]; const encodedInventoryContents = (_a = data[hypixelInventoryName]) === null || _a === void 0 ? void 0 : _a.data; let inventoryContents; - if (encodedInventoryContents) + if (encodedInventoryContents) { inventoryContents = await cleanInventory(encodedInventoryContents); - if (cleanInventoryName === 'armor') - // the armor is sent from boots to head, the opposite makes more sense - inventoryContents.reverse(); - cleanInventories[cleanInventoryName] = inventoryContents; + if (cleanInventoryName === 'armor') + // the armor is sent from boots to head, the opposite makes more sense + inventoryContents.reverse(); + cleanInventories[cleanInventoryName] = inventoryContents; + } } return cleanInventories; } |