(1.9.0.3) Fix blank line when copying to macros
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors>Asriel Camora</Authors>
|
<Authors>Asriel Camora</Authors>
|
||||||
<Version>1.9.0.2</Version>
|
<Version>1.9.0.3</Version>
|
||||||
<PackageProjectUrl>https://github.com/WorkingRobot/craftimizer.git</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/WorkingRobot/craftimizer.git</PackageProjectUrl>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ public static class MacroCopy
|
|||||||
|
|
||||||
var module = RaptureMacroModule.Instance();
|
var module = RaptureMacroModule.Instance();
|
||||||
var macro = module->GetMacro(isShared ? 1u : 0u, (uint)idx);
|
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);
|
module->ReplaceMacroLines(macro, text);
|
||||||
text->Dtor();
|
text->Dtor();
|
||||||
IMemorySpace.Free(text);
|
IMemorySpace.Free(text);
|
||||||
|
|||||||
Reference in New Issue
Block a user