From 6b423225fe2670f68793a4c92a3cf4d456b0fe02 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Sun, 21 Sep 2025 20:28:35 +0800 Subject: [PATCH] partial fix belt signal --- CheatEnabler/Patches/FactoryPatch.cs | 2 +- UXAssist/Patches/FactoryPatch.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CheatEnabler/Patches/FactoryPatch.cs b/CheatEnabler/Patches/FactoryPatch.cs index 2d97c66..3e2e13c 100644 --- a/CheatEnabler/Patches/FactoryPatch.cs +++ b/CheatEnabler/Patches/FactoryPatch.cs @@ -1131,7 +1131,7 @@ public class FactoryPatch : PatchImpl { var matcher = new CodeMatcher(instructions); matcher.MatchForward(false, - new CodeMatch(OpCodes.Call, AccessTools.Method(typeof(DeepProfiler), nameof(DeepProfiler.EndSample))) + new CodeMatch(OpCodes.Call, AccessTools.Method(typeof(DeepProfiler), nameof(DeepProfiler.EndSample), [typeof(int), typeof(long)])) ).Advance(1).Insert( new CodeInstruction(OpCodes.Call, AccessTools.Method(typeof(BeltSignalGenerator), nameof(ProcessBeltSignals))) ); diff --git a/UXAssist/Patches/FactoryPatch.cs b/UXAssist/Patches/FactoryPatch.cs index 6c6af36..f8d5ed8 100644 --- a/UXAssist/Patches/FactoryPatch.cs +++ b/UXAssist/Patches/FactoryPatch.cs @@ -1838,7 +1838,7 @@ public class FactoryPatch : PatchImpl { var matcher = new CodeMatcher(instructions, generator); matcher.MatchForward(false, - new CodeMatch(OpCodes.Call, AccessTools.Method(typeof(DeepProfiler), nameof(DeepProfiler.EndSample))) + new CodeMatch(OpCodes.Call, AccessTools.Method(typeof(DeepProfiler), nameof(DeepProfiler.EndSample), [typeof(int), typeof(long)])) ).Advance(1).Insert( Transpilers.EmitDelegate(() => {