Skip to content

Commit

Permalink
Fix ablator amount not getting restored on load.
Browse files Browse the repository at this point in the history
Closes #8
  • Loading branch information
siimav committed Nov 10, 2022
1 parent 3d9b9f1 commit 26a711a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
14 changes: 0 additions & 14 deletions GameData/ROHeatshields/Parts/AdjustableHS.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -173,20 +173,6 @@ PART
reentryConductivity = 0.01
}

RESOURCE
{
name = Ablator
amount = 1
maxAmount = 1
}

RESOURCE
{
name = CharredAblator
amount = 0
maxAmount = 1
}

MODULE
{
name = SSTURecolorGUI
Expand Down
10 changes: 0 additions & 10 deletions Source/ModuleROHeatshield.cs
Original file line number Diff line number Diff line change
Expand Up @@ -415,16 +415,6 @@ private void RemoveAblatorResources()
{
part.Resources.Remove(outputResourceName);
}

// The part can spawn with a set of default resources.
// If no resources have been configured through this PartModule yet then need to strip everything that the prefab has.
if (part.Resources.Count > 0)
{
foreach (AvailablePart.ResourceInfo resInf in part.partInfo.resourceInfos)
{
part.Resources.Remove(resInf.resourceName);
}
}
}

private PartResource EnsureAblatorResource(string name)
Expand Down

0 comments on commit 26a711a

Please sign in to comment.