返回提交历史
Modified
src/services/inventoryService.ts
+1
-1
XFEstudio/SpaceNinjaServer
fix: logic error in addCrewShipHarness
d63bab1b
代码差异
1 个文件
+1
-1
@@ -855,7 +855,7 @@ const addCrewShipHarness = (
855
855
typeName: string,
856
856
inventoryChanges: IInventoryChanges = {}
857
857
): IInventoryChanges => {
858
if (inventory.CrewShips.length != 0) {
858
if (inventory.CrewShipHarnesses.length != 0) {
859
859
throw new Error("refusing to add CrewShipHarness because account already has one");
860
860
}
861
861
const index = inventory.CrewShipHarnesses.push({ ItemType: typeName }) - 1;