This commit is contained in:
2026-02-10 01:11:12 +08:00
parent 60d14c9401
commit 29b30996e6
2 changed files with 40 additions and 12 deletions
+6 -2
View File
@@ -134,7 +134,9 @@ public static class TechPatch
_protoPatched = false;
}
UIRoot.instance.uiGame.techTree.OnPageChanged();
var techTree = UIRoot.instance?.uiGame?.techTree;
if (techTree != null && techTree.isActiveAndEnabled)
techTree.OnPageChanged();
}
private static void VFPreload_InvokeOnLoadWorkEnded_Postfix()
@@ -305,7 +307,9 @@ public static class TechPatch
}
}
}
UIRoot.instance.uiGame.techTree.OnPageChanged();
var techTree = UIRoot.instance?.uiGame?.techTree;
if (techTree != null && techTree.isActiveAndEnabled)
techTree.OnPageChanged();
}
}