diff --git a/UXAssist/Patches/PersistPatch.cs b/UXAssist/Patches/PersistPatch.cs index e50f0b0..717037c 100644 --- a/UXAssist/Patches/PersistPatch.cs +++ b/UXAssist/Patches/PersistPatch.cs @@ -88,7 +88,7 @@ public class PersistPatch : PatchImpl return matcher.InstructionEnumeration(); } - + // Sort blueprint data when pasting [HarmonyTranspiler] [HarmonyPatch(typeof(BuildTool_BlueprintCopy), nameof(BuildTool_BlueprintCopy.UseToPasteNow))] private static IEnumerable BuildTool_BlueprintCopy_UseToPasteNow_Transpiler(IEnumerable instructions, ILGenerator generator) @@ -105,6 +105,7 @@ public class PersistPatch : PatchImpl return matcher.InstructionEnumeration(); } + // Sort blueprint data when saving [HarmonyPrefix] [HarmonyPatch(typeof(BlueprintData), nameof(BlueprintData.SaveBlueprintData))] private static void BlueprintData_SaveBlueprintData_Prefix(BlueprintData __instance)