1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-02-04 13:12: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++;
}
__instance.currentVeinIndex = veinCount > 1 ? currentVeinIndex % veinCount : 0;
__instance.time -= __instance.period * times;
break;
}
}
@@ -1259,6 +1260,7 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
}
else
{
__instance.time -= __instance.period * times;
break;
}
}

View File

@@ -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()