From f58bd869fee962fddce7b5680c675f4ab224a299 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Fri, 27 Jun 2025 02:39:15 +0800 Subject: [PATCH] add comments --- UXAssist/Patches/PersistPatch.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)