XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

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

76964585
Vampire Kitten <95658710+VampireKitten@users.noreply.github.com>
提交于

代码差异

1 个文件 +3 -1
Modified src/controllers/api/inventoryController.ts +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 });