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

SpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/SpaceNinjaServer

note

2ec11073
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +1 -0
Modified src/controllers/api/contributeToDojoComponentController.ts +1 -0
@@ -10,6 +10,7 @@ export const contributeToDojoComponentController: RequestHandler = async (req, r
10 10 const accountId = await getAccountIdForRequest(req);
11 11 const inventory = await getInventory(accountId);
12 12 const guild = await getGuildForRequestEx(req, inventory);
13 // Any clan member should have permission to contribute although notably permission is denied if they have not crafted the dojo key and were simply invited in.
13 14 const request = JSON.parse(String(req.body)) as IContributeToDojoComponentRequest;
14 15 const component = guild.DojoComponents.id(request.ComponentId)!;
15 16 const componentMeta = Object.values(ExportDojoRecipes.rooms).find(x => x.resultType == component.pf)!;