fix: logic error in addCrewShipHarness
All checks were successful
Build / build (18) (push) Successful in 38s
Build / build (22) (push) Successful in 47s
Build / build (20) (push) Successful in 56s
Build Docker image / docker (push) Successful in 32s

This commit is contained in:
Sainan 2025-02-28 03:51:08 +01:00
parent 526ce1529b
commit d63bab1bf4

View File

@ -855,7 +855,7 @@ const addCrewShipHarness = (
typeName: string,
inventoryChanges: IInventoryChanges = {}
): IInventoryChanges => {
if (inventory.CrewShips.length != 0) {
if (inventory.CrewShipHarnesses.length != 0) {
throw new Error("refusing to add CrewShipHarness because account already has one");
}
const index = inventory.CrewShipHarnesses.push({ ItemType: typeName }) - 1;