Skip to content

Commit

Permalink
fix name lookup for propellant resources
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyOThan committed Aug 12, 2024
1 parent 33ce081 commit 3be8d8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RasterPropMonitor/Core/RPMCEvaluators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ internal NumericVariableEvaluator GetNumericEvaluator(string input, out Variable
{
if (tokens.Length == 3 && uint.TryParse(tokens[1], out uint propellantIndex))
{
if (tokens[2] == "NAME") return null;
ResourceDataStorage.ParseResourceQuery(tokens[2], out var valueType, out bool stage);
return (RPMVesselComputer comp) => comp.resources.GetPropellantResourceValue(propellantIndex, valueType, stage);
}
Expand Down

0 comments on commit 3be8d8c

Please sign in to comment.