From a81b6b3b1cd5c9a4694cd3de74a3b847938d00c6 Mon Sep 17 00:00:00 2001 From: Asriel Camora Date: Tue, 24 Oct 2023 02:49:43 -0700 Subject: [PATCH] (1.9.0.3) Fix blank line when copying to macros --- Craftimizer/Craftimizer.csproj | 2 +- Craftimizer/Utils/MacroCopy.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Craftimizer/Craftimizer.csproj b/Craftimizer/Craftimizer.csproj index 02fefc8..685b50d 100644 --- a/Craftimizer/Craftimizer.csproj +++ b/Craftimizer/Craftimizer.csproj @@ -2,7 +2,7 @@ Asriel Camora - 1.9.0.2 + 1.9.0.3 https://github.com/WorkingRobot/craftimizer.git diff --git a/Craftimizer/Utils/MacroCopy.cs b/Craftimizer/Utils/MacroCopy.cs index d8b382a..10ecb50 100644 --- a/Craftimizer/Utils/MacroCopy.cs +++ b/Craftimizer/Utils/MacroCopy.cs @@ -144,7 +144,7 @@ public static class MacroCopy var module = RaptureMacroModule.Instance(); var macro = module->GetMacro(isShared ? 1u : 0u, (uint)idx); - var text = Utf8String.FromString(macroText); + var text = Utf8String.FromString(macroText.Replace(Environment.NewLine, "\n")); module->ReplaceMacroLines(macro, text); text->Dtor(); IMemorySpace.Free(text);