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:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user