@PART[*]:HAS[@MODULE[Refunding]]:LAST[999_KSP-Recall]
{
  hasRefundingOnRecovery = #$@KSP_COMMUNITY_FIXES/RefundingOnRecovery$
}

@PART[*]:HAS[#hasRefundingOnRecovery[?rue]]:LAST[999_KSP-Recall]
{
  !MODULE[Refunding]{}
}

@PART[*]:HAS[#hasRefundingOnRecovery]:LAST[999_KSP-Recall]
{
  !hasRefundingOnRecovery = delete
}

@KSP-Recall:LAST[999_KSP-Recall]
{
  hasRefundingOnRecovery = #$@KSP_COMMUNITY_FIXES/RefundingOnRecovery$
}

@KSP-Recall:HAS[#hasRefundingOnRecovery[?rue]]:LAST[999_KSP-Recall]
{
  @INSTALLED
  {
    @Refunding = false
  }
}

@KSP-Recall:HAS[#hasRefundingOnRecovery]:LAST[999_KSP-Recall]
{
  !hasRefundingOnRecovery = delete
}

// https://github.com/KSPModdingLibs/KSPCommunityFixes/issues/191
@KSP_COMMUNITY_FIXES:NEEDS[AttachedOnEditor]
{
  @BetterEditorUndoRedo = false
}
