private static void ResetInventory_1_11(this ProtoCrewMember crew, bool withJetpack = false) // KSP has issues on older versions if this call is in the parent function. { crew.SetDefaultInventory(); // Reset the inventory to a chute and a jetpack. if (!withJetpack) { var inventory = crew.KerbalInventoryModule; if (inventory.ContainsPart("evaJetpack")) { inventory.RemoveNPartsFromInventory("evaJetpack", 1, false); } } }
private static void ResetInventory_1_11(this ProtoCrewMember crew) // KSP has issues on older versions if this call is in the parent function. { crew.SetDefaultInventory(); // Reset the inventory to a chute and a jetpack. }