Skip to content

Commit d24a136

Browse files
committed
fix native parser
1 parent 20b4423 commit d24a136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SomethingNeedDoing/NativeMacro/MacroParser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private IMacroCommand CreateCommand(CommandParseInfo info, IMacroScheduler sched
186186
"equipitem" => ParseEquipItemCommand(info.Parameters),
187187
"targetenemy" => ParseTargetEnemyCommand(info.Parameters),
188188
"waitaddon" => ParseWaitAddonCommand(info.Parameters),
189-
_ => ParseNativeCommand(info.Parameters),
189+
_ => ParseNativeCommand(info),
190190
};
191191
}
192192

@@ -243,7 +243,7 @@ private void ApplyModifiers(List<ModifierInfo> modifiers, IMacroCommand command)
243243
}
244244

245245
#region Command Parsing
246-
private NativeCommand ParseNativeCommand(string parameters) => new(parameters);
246+
private NativeCommand ParseNativeCommand(CommandParseInfo info) => new($"/{info.CommandName} {info.Parameters}".TrimEnd());
247247

248248
private TargetCommand ParseTargetCommand(string parameters)
249249
{

0 commit comments

Comments
 (0)