1
0
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:
2024-12-14 19:55:38 +08:00
parent 833bc3b0ac
commit 88b8be79a0

View File

@@ -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;