返回提交历史
Modified
src/controllers/api/inventoryController.ts
+3
-1
XFEstudio/XFESpaceNinjaServer
fix: Apply Look not working with Unlock All Skins turned on (#549)
76964585
代码差异
1 个文件
+3
-1
@@ -105,10 +105,12 @@ const inventoryController: RequestHandler = async (request, response) => {
105
105
106
106
if (config.unlockAllSkins) {
107
107
inventoryResponse.WeaponSkins = [];
108
let i = 0;
108
109
for (const uniqueName in ExportCustoms) {
110
i++;
109
111
inventoryResponse.WeaponSkins.push({
110
112
ItemId: {
111
$oid: "000000000000000000000000"
113
$oid: i.toString().padStart(24, "0")
112
114
},
113
115
ItemType: uniqueName
114
116
});