Skip to content

Commit 82b7302

Browse files
authored
Merge pull request #36 from KSP2Community/dev
Hotfix
2 parents 72cc588 + 0618228 commit 82b7302

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

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.9.3",
8+
"version": "0.9.4",
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/Execution/Universe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private void LoadSinglePatch(string modId, FileInfo patch, Transformer tokenTran
258258
}
259259
catch (Exception e)
260260
{
261-
_errorLogger($"Could not run patch: {modId}:{patch.Name} due to: {e.Message}");
261+
_errorLogger($"Could not run patch: {modId}:{patch.Name} due to: {e}");
262262
}
263263
}
264264

src/PatchManager.SassyPatching/Transformer.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,12 @@ public override Node VisitImplicit_stage_def(sassy_parser.Implicit_stage_defCont
806806
context.GetCoordinate(), context.stage.GetStringValue(),
807807
context.stage_attribute().Select(Visit).Cast<StageDefinitionAttribute>().ToList());
808808

809+
public override Node VisitStage_value_before(sassy_parser.Stage_value_beforeContext context) =>
810+
new StageDefinitionAttribute(context.GetCoordinate(), context.stage.GetStringValue(), false);
811+
812+
public override Node VisitStage_value_after(sassy_parser.Stage_value_afterContext context) =>
813+
new StageDefinitionAttribute(context.GetCoordinate(), context.stage.GetStringValue(), true);
814+
809815
/// <inheritdoc />
810816
public override Node VisitConfig_creation(sassy_parser.Config_creationContext context) => new ConfigCreation(
811817
context.GetCoordinate(), context.label.GetStringValue(), context.config_name.GetStringValue(),

0 commit comments

Comments
 (0)