Skip to content

Commit

Permalink
Merge pull request #824 from zymex22/issue823
Browse files Browse the repository at this point in the history
Fixed Null Ref wehen crafting items with NULL Quality
  • Loading branch information
Sn1p3rr3c0n authored Dec 19, 2024
2 parents c7254e9 + 1568aa9 commit 6fa2c1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/ProjectRimFactory/AutoMachineTool/GenRecipe2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,19 @@ private static Thing PostProcessProduct(Thing product, RecipeDef recipeDef, IRec
QualityCategory qualityCategory = QualityUtility.GenerateQualityCreatedByPawn(level, false);
compQuality.SetQuality(qualityCategory, ArtGenerationContext.Colony);
}
CompArt compArt = product.TryGetComp<CompArt>();
/*CompArt compArt = product.TryGetComp<CompArt>();
if (compArt != null)
{
if (compQuality.Quality >= QualityCategory.Excellent)
{
/*
TaleRecorder.RecordTale(TaleDefOf.CraftedArt, new object[]
{
product
});
*/
}
}
}*/
if (precept != null)
{
product.StyleSourcePrecept = precept;
Expand Down

0 comments on commit 6fa2c1e

Please sign in to comment.