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: 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
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified src/controllers/api/startRecipeController.ts +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