1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-02-04 17:02:17 +08:00

minor fix

This commit is contained in:
2026-01-23 02:12:24 +08:00
parent 2377f92589
commit 3156f0ffb5
2 changed files with 2 additions and 2 deletions

View File

@@ -1170,6 +1170,7 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
currentVeinIndex++; currentVeinIndex++;
} }
__instance.currentVeinIndex = veinCount > 1 ? currentVeinIndex % veinCount : 0; __instance.currentVeinIndex = veinCount > 1 ? currentVeinIndex % veinCount : 0;
__instance.time -= __instance.period * times;
break; break;
} }
} }
@@ -1259,6 +1260,7 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
} }
else else
{ {
__instance.time -= __instance.period * times;
break; break;
} }
} }

View File

@@ -27,8 +27,6 @@ public class MyConfigWindow : MyWindowWithTabs
OnUICreated?.Invoke(this, _windowTrans); OnUICreated?.Invoke(this, _windowTrans);
SetCurrentTab(0); SetCurrentTab(0);
OnUpdateUI?.Invoke(); OnUpdateUI?.Invoke();
// Delay 500ms to run AutoFitWindowSize() after the window is created
// Invoke(nameof(AutoFitWindowSize), 0f);
} }
public override void _OnDestroy() public override void _OnDestroy()