Skip to content

Commit 8e4d280

Browse files
authored
Merge pull request #26 from KSP2Community/hotfix-1.7.3
Hotfix 0.7.3
2 parents 9a7ea97 + 334e20d commit 8e4d280

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

plugin_template/swinfo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Patch Manager",
66
"description": "A mod for generic patching needs similar to KSP 1's Module Manager.",
77
"source": "https://github.com/KSP2Community/PatchManager",
8-
"version": "0.7.2",
8+
"version": "0.7.3",
99
"version_check": "https://raw.githubusercontent.com/KSP2Community/PatchManager/main/plugin_template/swinfo.json",
1010
"ksp2_version": {
1111
"min": "0.2.0",

src/PatchManager.SassyPatching/Nodes/Expressions/Unary/ImplicitSubtract.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ internal override DataValue GetResult(DataValue leftHandSide, DataValue rightHan
3333
return leftHandSide.Integer - rightHandSide.Real;
3434
}
3535

36+
37+
if (leftHandSide.IsList && rightHandSide.IsList)
38+
{
39+
return leftHandSide.List.Where(x => rightHandSide.List.All(y => x != y)).ToList();
40+
}
41+
42+
3643
throw new BinaryExpressionTypeException(Coordinate,"subtract", leftHandSide.Type.ToString(),
3744
rightHandSide.Type.ToString());
3845
}

0 commit comments

Comments
 (0)