public void DeconstructGrid(IMyCubeGrid SelectedGrid)
 {
     if (SelectedGrid == null || Settings.Items.Count > 0)
     {
         return;
     }
     SetPower(true);
     Settings.IsGrinding = true;
     Utils.DeconstructGrid(MyInventory, ref SelectedGrid, ref Settings.Items);
     SelectedGrid.Delete();
 }
Beispiel #2
0
 private void DeleteGrid(IMyCubeGrid cubeGrid, string reason)
 {
     MyLog.Default.WriteLineAndConsole($"DELETED GRID: {cubeGrid.DisplayName}. Reason: {reason}.");
     cubeGrid.Delete();
     cubeGrid.Close();
 }