1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 14:13:31 +08:00

CheatEnabler and UXAssist new versions

This commit is contained in:
2024-03-25 02:41:24 +08:00
parent 3a52175041
commit cff09505b9
13 changed files with 297 additions and 70 deletions

View File

@@ -205,8 +205,9 @@ public static class DysonSpherePatch
[HarmonyPatch(typeof(DysonSphere), nameof(DysonSphere.ResetNew))]
private static void DysonSphere_ResetNew_Prefix(DysonSphere __instance)
{
if (_nodeForAbsorb == null) return;
var starIndex = __instance.starData.index;
if (_nodeForAbsorb[starIndex] == null) return;
if (starIndex >= _nodeForAbsorb.Length || _nodeForAbsorb[starIndex] == null) return;
_nodeForAbsorb[starIndex].Clear();
_nodeForAbsorb[starIndex] = null;
}