1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-03-22 19:23:31 +08:00

UXAssist: bug fix

This commit is contained in:
2026-02-13 23:29:22 +08:00
parent 3e24461ef0
commit 2e13206346
5 changed files with 97 additions and 63 deletions

View File

@@ -271,7 +271,7 @@ public static class UIFunctions
{
if (ToggleAutoConstruct == null) return;
var localPlanet = GameMain.localPlanet;
var active = localPlanet != null && localPlanet.factoryLoaded && localPlanet.factory.prebuildCount > 0;
var active = localPlanet != null && localPlanet.factoryLoaded && localPlanet.factory.prebuildCount > 0 && Patches.FactoryPatch.AutoConstructButtonEnabled.Value;
ToggleAutoConstruct.gameObject.SetActive(active);
ConstructCountPanel.gameObject.SetActive(active);
}