mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
fix a minor issue
This commit is contained in:
1 parent
833bc3b0ac
commit
88b8be79a0
1 file changed
+10
@@ -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