1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-08 21:33:28 +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>
{
protected override void OnEnable()
{
RecheckDysonSphereAutoNodes();
}
protected override void OnDisable()
{
RecheckDysonSphereAutoNodes();
}
private static void RecheckDysonSphereAutoNodes()
{
var spheres = GameMain.data?.dysonSpheres;
if (spheres == null) return;