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

Merged
VampireKitten merged 2 commits from fix-skins into main 2024-10-15 07:27:59 -07:00

View File

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