Skip to content

Commit

Permalink
Update Commands.cs
Browse files Browse the repository at this point in the history
Debug-Code removed and proper logging set to figure out when a grid goes missing why it does so
  • Loading branch information
LordTylus committed Apr 14, 2019
1 parent e232679 commit 0250c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ private void fixShip(string gridName, long playerId, long executingPlayerId) {

IMyCubeGrid grid = groupNodes.NodeData;

Log.Warn("Test " + grid.CustomName);

List<IMyTerminalBlock> tBlockList = new List<IMyTerminalBlock>();

var gts = MyAPIGateway.TerminalActionsHelper.GetTerminalSystemForGrid(grid);
Expand Down Expand Up @@ -134,6 +132,8 @@ private void fixShip(string gridName, long playerId, long executingPlayerId) {

var entity = grid as IMyEntity;

Log.Warn("Grid " + grid.CustomName+" was removed for later paste");

MyAPIGateway.Utilities.InvokeOnGameThread(() => entity.Delete());
entity.Close();
continue;
Expand Down

0 comments on commit 0250c69

Please sign in to comment.