sarbian / ModuleManager

177 stars 95 forks source link

Reload PartUpgrade System after patching #70

Closed shadowmage45 closed 7 years ago

shadowmage45 commented 7 years ago

As the part-upgrade data is initially populated prior to ModuleManager patching, this fix allows for the patches that are applied to the PARTUPGRADE nodes to be reloaded for use by the PartUpgrade system. With this fix in place the tech-nodes, names, descriptions, etc, for the part-upgrade parts located on the tech tree will use the proper post-patching config data.

This solution has been tested to work properly when used directly from a ModuleManagerPostLoad callback.

Fix for problems discovered in https://github.com/KSP-RO/RealismOverhaul/pull/1628

sarbian commented 7 years ago

Great, another hidden early loading in KSP code...

Thanks for the patch :)