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

chore: remove /Lotus/Types/Recipes/ from path-based logic (#1475)

Both recipes & MiscItems (recipe components) start with this. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1475 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

5f6b2330
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +0 -11
Modified src/services/inventoryService.ts +0 -11
@@ -673,17 +673,6 @@ export const addItem = async (
673 673 Horses: [inventory.Horses[horseIndex - 1].toJSON<IEquipmentClient>()]
674 674 };
675 675 }
676 case "Recipes": {
677 inventory.MiscItems.push({ ItemType: typeName, ItemCount: quantity });
678 return {
679 MiscItems: [
680 {
681 ItemType: typeName,
682 ItemCount: quantity
683 }
684 ]
685 };
686 }
687 676 case "Vehicles":
688 677 if (typeName == "/Lotus/Types/Vehicles/Motorcycle/MotorcyclePowerSuit") {
689 678 return addMotorcycle(inventory, typeName);