This commit is contained in:
soarqin committed 2026-02-10 01:11:12 +08:00
1 parent 60d14c9401
commit 29b30996e6
2 files changed
+40 -12

No files matched your search

+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();
}
}