Skip to content

Commit

Permalink
Merge pull request #26 from KSP2Community/hotfix-1.7.3
Browse files Browse the repository at this point in the history
Hotfix 0.7.3
  • Loading branch information
cheese3660 authored Dec 30, 2023
2 parents 9a7ea97 + 334e20d commit 8e4d280
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugin_template/swinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Patch Manager",
"description": "A mod for generic patching needs similar to KSP 1's Module Manager.",
"source": "https://github.com/KSP2Community/PatchManager",
"version": "0.7.2",
"version": "0.7.3",
"version_check": "https://raw.githubusercontent.com/KSP2Community/PatchManager/main/plugin_template/swinfo.json",
"ksp2_version": {
"min": "0.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ internal override DataValue GetResult(DataValue leftHandSide, DataValue rightHan
return leftHandSide.Integer - rightHandSide.Real;
}


if (leftHandSide.IsList && rightHandSide.IsList)
{
return leftHandSide.List.Where(x => rightHandSide.List.All(y => x != y)).ToList();
}


throw new BinaryExpressionTypeException(Coordinate,"subtract", leftHandSide.Type.ToString(),
rightHandSide.Type.ToString());
}
Expand Down

0 comments on commit 8e4d280

Please sign in to comment.