void DeleteTank() { PartResource partResource = resource; // Delete it //Debug.LogWarning ("[MFT] Deleting tank from API " + name); maxAmountExpression = null; part.Resources.list.Remove(partResource); PartModule.DestroyImmediate(partResource); module.RaiseResourceListChanged(); //print ("Removed."); // Update symmetry counterparts. if (HighLogic.LoadedSceneIsEditor && propagate) { foreach (Part sym in part.symmetryCounterparts) { PartResource symResc = sym.Resources[name]; sym.Resources.list.Remove(symResc); PartModule.DestroyImmediate(symResc); PartMessageService.Send <PartResourceListChanged> (this, sym); } } //print ("Sym removed"); }