From 3156f0ffb59feadabab870f0570a4cfdbacb2092 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Fri, 23 Jan 2026 02:12:24 +0800 Subject: [PATCH] minor fix --- UXAssist/Patches/FactoryPatch.cs | 2 ++ UXAssist/UI/MyConfigWindow.cs | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UXAssist/Patches/FactoryPatch.cs b/UXAssist/Patches/FactoryPatch.cs index 4753ee6..f990c61 100644 --- a/UXAssist/Patches/FactoryPatch.cs +++ b/UXAssist/Patches/FactoryPatch.cs @@ -1170,6 +1170,7 @@ public class FactoryPatch : PatchImpl currentVeinIndex++; } __instance.currentVeinIndex = veinCount > 1 ? currentVeinIndex % veinCount : 0; + __instance.time -= __instance.period * times; break; } } @@ -1259,6 +1260,7 @@ public class FactoryPatch : PatchImpl } else { + __instance.time -= __instance.period * times; break; } } diff --git a/UXAssist/UI/MyConfigWindow.cs b/UXAssist/UI/MyConfigWindow.cs index 0c6efc8..0b9da92 100644 --- a/UXAssist/UI/MyConfigWindow.cs +++ b/UXAssist/UI/MyConfigWindow.cs @@ -27,8 +27,6 @@ public class MyConfigWindow : MyWindowWithTabs OnUICreated?.Invoke(this, _windowTrans); SetCurrentTab(0); OnUpdateUI?.Invoke(); - // Delay 500ms to run AutoFitWindowSize() after the window is created - // Invoke(nameof(AutoFitWindowSize), 0f); } public override void _OnDestroy()