mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 03:33:29 +08:00
fix a minor issue
This commit is contained in:
@@ -477,6 +477,16 @@ public class DysonSpherePatch: PatchImpl<DysonSpherePatch>
|
|||||||
private class OnlyConstructNodes: PatchImpl<OnlyConstructNodes>
|
private class OnlyConstructNodes: PatchImpl<OnlyConstructNodes>
|
||||||
{
|
{
|
||||||
protected override void OnEnable()
|
protected override void OnEnable()
|
||||||
|
{
|
||||||
|
RecheckDysonSphereAutoNodes();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnDisable()
|
||||||
|
{
|
||||||
|
RecheckDysonSphereAutoNodes();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void RecheckDysonSphereAutoNodes()
|
||||||
{
|
{
|
||||||
var spheres = GameMain.data?.dysonSpheres;
|
var spheres = GameMain.data?.dysonSpheres;
|
||||||
if (spheres == null) return;
|
if (spheres == null) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user