I have the following script on a programming block in my world:
[noob] Weird error with programmable block
Code:
void Main(string argument)
{
List<IMyTerminalBlock> blocks = new List<IMyTerminalBlock>();
GridTerminalSystem.SearchBlocksOfName("(hydrostats)", blocks);
StringBuilder sb = new StringBuilder();
foreach (IMyTerminalBlock b in blocks) {
sb.Append(b.Name);
sb.Append("\n");
}
string s = sb.ToString();
foreach (IMyTerminalBlock b in blocks) {
IMyTextPanel panel = b as...