fix: remove dojo key after being kicked from clan

This commit is contained in:
Sainan 2025-03-14 11:21:56 +01:00
parent 0c06776985
commit 236cccc137

View File

@ -17,9 +17,9 @@ export const removeFromGuildController: RequestHandler = async (req, res) => {
inventory.GuildId = undefined; inventory.GuildId = undefined;
// Remove clan key or blueprint from kicked member // Remove clan key or blueprint from kicked member
const itemIndex = inventory.MiscItems.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKey"); const itemIndex = inventory.LevelKeys.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKey");
if (itemIndex != -1) { if (itemIndex != -1) {
inventory.MiscItems.splice(itemIndex, 1); inventory.LevelKeys.splice(itemIndex, 1);
} else { } else {
const recipeIndex = inventory.Recipes.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKeyBlueprint"); const recipeIndex = inventory.Recipes.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKeyBlueprint");
if (recipeIndex != -1) { if (recipeIndex != -1) {