fix: Apply Look not working with Unlock All Skins turned on (#549)

This commit is contained in:
Vampire Kitten 2024-10-15 16:27:58 +02:00 committed by GitHub
parent 59679c3d56
commit 76964585eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,10 +105,12 @@ const inventoryController: RequestHandler = async (request, response) => {
if (config.unlockAllSkins) { if (config.unlockAllSkins) {
inventoryResponse.WeaponSkins = []; inventoryResponse.WeaponSkins = [];
let i = 0;
for (const uniqueName in ExportCustoms) { for (const uniqueName in ExportCustoms) {
i++;
inventoryResponse.WeaponSkins.push({ inventoryResponse.WeaponSkins.push({
ItemId: { ItemId: {
$oid: "000000000000000000000000" $oid: i.toString().padStart(24, "0")
}, },
ItemType: uniqueName ItemType: uniqueName
}); });