Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/StarCoreSE/TLB
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauge committed Jun 29, 2024
2 parents 63e10c8 + 5951bff commit 7f878fa
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions SkyPiratesSEBR/Data/Scripts/blockremover/remover.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ private void UpdateAllCubes()
}

// make cargo and connectors ungovernable
if((cubeDef.Id.SubtypeId.String.Contains("Container") || cubeDef.Id.SubtypeId.String.Contains("Connector")) && compList[i].Definition.Id.SubtypeId.String == "Computer")
{
//MyLog.Default.WriteLineAndConsole($"Removed computers from {cubeDef.Id.SubtypeId.String} at component index {i}.");
compList.RemoveAt(i);
i--;
if (i <= cubeDef.CriticalGroup && cubeDef.CriticalGroup > 0)
cubeDef.CriticalGroup--;
continue;
}
//if((cubeDef.Id.SubtypeId.String.Contains("Container") || cubeDef.Id.SubtypeId.String.Contains("Connector")) && compList[i].Definition.Id.SubtypeId.String == "Computer")
//{
// //MyLog.Default.WriteLineAndConsole($"Removed computers from {cubeDef.Id.SubtypeId.String} at component index {i}.");
// compList.RemoveAt(i);
// i--;
// if (i <= cubeDef.CriticalGroup && cubeDef.CriticalGroup > 0)
// cubeDef.CriticalGroup--;
// continue;
//}

// Fix duplicate component stacks.
if (i > 0 && compList[i].Definition == compList[i - 1].Definition && (i != (int)cubeDef.CriticalGroup))
Expand Down

0 comments on commit 7f878fa

Please sign in to comment.