diff --git a/Source/RP0/SpaceCenter/Projects/VesselRepairProject.cs b/Source/RP0/SpaceCenter/Projects/VesselRepairProject.cs index 0a30fdc8ab..4078dbb653 100644 --- a/Source/RP0/SpaceCenter/Projects/VesselRepairProject.cs +++ b/Source/RP0/SpaceCenter/Projects/VesselRepairProject.cs @@ -64,7 +64,7 @@ public bool ApplyRepairs() try { - ResetIgnitionsOnVessel(v); + ResetMERFsOnVessel(v); } catch { @@ -80,11 +80,19 @@ public bool ApplyRepairs() } } - private static void ResetIgnitionsOnVessel(Vessel v) + private static void ResetMERFsOnVessel(Vessel v) { foreach (var merf in v.FindPartModulesImplementing()) { merf.ResetIgnitions(); + + foreach (ModuleResource ignRes in merf.ignitionResources) + { + if (merf.part.Resources.Get(ignRes.id) is PartResource res) + { + res.amount = res.maxAmount; + } + } } } }