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: remove dojo key after being kicked from clan

236cccc1
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +2 -2
Modified src/controllers/api/removeFromGuildController.ts +2 -2
@@ -17,9 +17,9 @@ export const removeFromGuildController: RequestHandler = async (req, res) => {
17 17 inventory.GuildId = undefined;
18 18
19 19 // Remove clan key or blueprint from kicked member
20 const itemIndex = inventory.MiscItems.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKey");
20 const itemIndex = inventory.LevelKeys.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKey");
21 21 if (itemIndex != -1) {
22 inventory.MiscItems.splice(itemIndex, 1);
22 inventory.LevelKeys.splice(itemIndex, 1);
23 23 } else {
24 24 const recipeIndex = inventory.Recipes.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKeyBlueprint");
25 25 if (recipeIndex != -1) {