void OnVesselWasModified(Vessel vesselModified)
{
if (vesselModified != this.vessel) {
return;
}
if (linked) {
if (linkedStrutModule.vessel != this.vessel) {
if (allowDock) {
KAS_Shared.DebugWarning("OnVesselWasModified(strut) Source and target vessel are"
+ " different, postponing docking strut... (allowDock = true)");
// This callback is invoked while the vessel is being
// modified, so any further changes must be postponed.
StartCoroutine(WaitAndRedock());
} else {
KAS_Shared.DebugWarning("OnVesselWasModified(strut) Source and target vessel are"
+ " different, unlinking strut... (allowDock = false)");
Unlink();
fxSndBroke.audio.Play();
}
} else if (pumpTo && (!pumpFrom || pumpFrom.State == PartStates.DEAD
|| pumpTo.vessel != pumpFrom.vessel)) {
StopPump();
}
}
}