返回提交历史
Modified
src/controllers/api/startRecipeController.ts
+1
-1
XFEstudio/XFESpaceNinjaServer
fix: treat recipe ingredient item counts as exact (#3762)
Closes #3761 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3762 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
52198c1c
代码差异
1 个文件
+1
-1
@@ -85,7 +85,7 @@ export const startRecipeController: RequestHandler = async (req, res) => {
85
85
} else {
86
86
const itemType = recipe.ingredients[i].ItemType;
87
87
const itemCount = recipe.ingredients[i].ItemCount;
88
await addItem(inventory, itemType, itemCount * -1);
88
await addItem(inventory, itemType, itemCount * -1, undefined, undefined, undefined, true);
89
89
}
90
90
}
91
91