Skip to content

Commit

Permalink
TEMP: rolling back RF 15.2 requirement and MECBase/SanitizeName ref s…
Browse files Browse the repository at this point in the history
…o this compiles against RF v13. REVERSE ME when the dll package is updated.
  • Loading branch information
NathanKell committed Jul 22, 2022
1 parent dfec6ff commit 8356a1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Source/KerbalConstructionTime/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
[assembly: AssemblyFileVersion("2.3.2.0")]

[assembly: KSPAssembly("KerbalConstructionTime", 2, 0)]
[assembly: KSPAssemblyDependency("RealFuels", 15, 1)]
[assembly: KSPAssemblyDependency("RealFuels", 12, 7)]
[assembly: KSPAssemblyDependency("ClickThroughBlocker", 1, 8)]
[assembly: KSPAssemblyDependency("ToolbarController", 1, 0)]
8 changes: 4 additions & 4 deletions Source/KerbalConstructionTime/Utilities/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2144,7 +2144,7 @@ public static Tuple<float, List<string>> GetVesselUnlockInfo(ShipConstruct ship)
if (rawCost == ecmEstCost)
{
// this part is managed by the ECM, save its name later for a batch request
string sanitizedName = RealFuels.Utilities.SanitizeName(part.name);
string sanitizedName = RealFuels.Utilities.GetPartName(part.name);
if (!ecmPartsList.Contains(sanitizedName))
ecmPartsList.Add(sanitizedName);
}
Expand All @@ -2162,10 +2162,10 @@ public static Tuple<float, List<string>> GetVesselUnlockInfo(ShipConstruct ship)
// now back through the list looking for upgrades to add to our batch list
foreach (Part p in ship.Parts)
{
var mecs = p.FindModulesImplementing<RealFuels.ModuleEngineConfigsBase>();
foreach (RealFuels.ModuleEngineConfigsBase mec in mecs)
var mecs = p.FindModulesImplementing<RealFuels.ModuleEngineConfigs>();
foreach (RealFuels.ModuleEngineConfigs mec in mecs)
{
string sanitizedName = RealFuels.Utilities.SanitizeName(mec.configuration);
string sanitizedName = RealFuels.Utilities.GetPartName(mec.configuration);
if (ecmPartsList.Contains(sanitizedName))
continue;

Expand Down
2 changes: 1 addition & 1 deletion Source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@

[assembly: KSPAssembly("RP-0", 1, 0)]
[assembly: KSPAssemblyDependency("ModularFlightIntegrator", 1, 0)]
[assembly: KSPAssemblyDependency("RealFuels", 15, 1)]
[assembly: KSPAssemblyDependency("RealFuels", 12, 7)]
[assembly: KSPAssemblyDependency("ClickThroughBlocker", 1, 8)]
[assembly: KSPAssemblyDependency("KerbalConstructionTime", 2, 0)]

0 comments on commit 8356a1c

Please sign in to comment.