Skip to content

Commit 6cbb874

Browse files
committed
Fix #93: don't call ModuleResourceConverter.Recipe because that will lock in the current recipe, potentially before B9PS has a chance to change it
1 parent 90354b8 commit 6cbb874

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

RasterPropMonitor/Core/RPMVCPerModule.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,12 @@ internal void UpdateModuleLists()
276276
else if (module is ModuleResourceConverter)
277277
{
278278
ModuleResourceConverter gen = module as ModuleResourceConverter;
279-
ConversionRecipe recipe = gen.Recipe;
280-
for (int i = 0; i < recipe.Outputs.Count; ++i)
279+
foreach (var output in gen.outputList)
281280
{
282-
if (recipe.Outputs[i].ResourceName == "ElectricCharge")
281+
if (output.ResourceName == "ElectricCharge")
283282
{
284283
availableFuelCells.Add(gen);
285-
availableFuelCellOutput.Add((float)recipe.Outputs[i].Ratio);
284+
availableFuelCellOutput.Add((float)output.Ratio);
286285
break;
287286
}
288287
}

0 commit comments

Comments
 (0)