Skip to content

Commit

Permalink
Merge pull request #770 from zymex22/issue610Fix
Browse files Browse the repository at this point in the history
Actually check if trader buildings are Minifiable
  • Loading branch information
Sn1p3rr3c0n authored Mar 15, 2024
2 parents 8b61d0c + 1bb3a1f commit aa32c75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/ProjectRimFactory/Common/PRFGameComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ private void TraderMinifyCheck()
if (stockGenerators[i] is StockGenerator_SingleDef stockDev)
{
ThingDef thingDef = (ThingDef)SAL3.ReflectionUtility.StockGenerator_SingleDef_thingDef.GetValue(stockDev);
if (!thingDef.mineable) stockGenerators.RemoveAt(i);

if (!thingDef.Minifiable && thingDef.category == ThingCategory.Building)
{
stockGenerators.RemoveAt(i);
}
}
}
}
Expand Down

0 comments on commit aa32c75

Please sign in to comment.