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