mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-02-04 15:12:17 +08:00
crash fix
This commit is contained in:
@@ -776,7 +776,7 @@ public static class DysonSphereFunctions
|
||||
isEuler.AddRange(shell.frames.Select(frame => frame.euler));
|
||||
break;
|
||||
}
|
||||
break;
|
||||
if (nodePos.Count > 0) break;
|
||||
}
|
||||
if (nodePos.Count == 0)
|
||||
{
|
||||
@@ -936,6 +936,7 @@ public static class DysonSphereFunctions
|
||||
for (var j = 1; j < layer.shellCursor; j++)
|
||||
{
|
||||
var shell = layer.shellPool[j];
|
||||
if (shell == null || shell.id != j) continue;
|
||||
shell.nodeIndexMap.Clear();
|
||||
for (var k = 0; k < shell.nodes.Count; k++)
|
||||
{
|
||||
@@ -945,6 +946,7 @@ public static class DysonSphereFunctions
|
||||
for (var j = 1; j < layer.nodeCursor; j++)
|
||||
{
|
||||
var node = layer.nodePool[j];
|
||||
if (node == null || node.id != j) continue;
|
||||
dysonSphere.AddDysonNodeRData(node, true);
|
||||
node.RecalcSpReq();
|
||||
node.RecalcCpReq();
|
||||
|
||||
Reference in New Issue
Block a user