From 88b8be79a09646a9bb33c0b37399fedea22c4c53 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Sat, 14 Dec 2024 19:55:38 +0800 Subject: [PATCH] fix a minor issue --- UXAssist/Patches/DysonSpherePatch.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/UXAssist/Patches/DysonSpherePatch.cs b/UXAssist/Patches/DysonSpherePatch.cs index 40c937e..f3a97cf 100644 --- a/UXAssist/Patches/DysonSpherePatch.cs +++ b/UXAssist/Patches/DysonSpherePatch.cs @@ -477,6 +477,16 @@ public class DysonSpherePatch: PatchImpl private class OnlyConstructNodes: PatchImpl { protected override void OnEnable() + { + RecheckDysonSphereAutoNodes(); + } + + protected override void OnDisable() + { + RecheckDysonSphereAutoNodes(); + } + + private static void RecheckDysonSphereAutoNodes() { var spheres = GameMain.data?.dysonSpheres; if (spheres == null) return;