private void SetCreateJointOnUnpack(bool newval)
{
if (FixedAttach.createJointOnUnpack != newval) {
FixedAttach.createJointOnUnpack = newval;
if (newval) {
GameEvents.onVesselGoOffRails.Add(new EventData<Vessel>.OnEvent(this.OnVesselGoOffRails));
} else {
GameEvents.onVesselGoOffRails.Remove(
new EventData<Vessel>.OnEvent(this.OnVesselGoOffRails));
}
}
}