Skip to content

Commit

Permalink
Removed unneeded logging
Browse files Browse the repository at this point in the history
  • Loading branch information
edbmods committed Aug 22, 2020
1 parent 8e7d3a1 commit 7c7e25d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/ProviderAlienRaces.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ protected ColorGenerator FindSecondarySkinColorGenerator(ThingDef raceDef, objec
}

protected ColorGenerator FindPrimarySkinColorGeneratorPre12(ThingDef raceDef, object alienPartGeneratorObject) {
return GetFieldValue(raceDef, alienPartGeneratorObject, "alienskincolorgen", true) as ColorGenerator;
return QuietReflectionUtil.GetFieldValue<ColorGenerator>(alienPartGeneratorObject, "alienskincolorgen");
}

protected ColorGenerator FindSecondarySkinColorGeneratorPre12(ThingDef raceDef, object alienPartGeneratorObject) {
return GetFieldValue(raceDef, alienPartGeneratorObject, "alienskinsecondcolorgen", true) as ColorGenerator;
return QuietReflectionUtil.GetFieldValue<ColorGenerator>(alienPartGeneratorObject, "alienskinsecondcolorgen");
}

protected ColorGenerator FindPrimaryColorGenerator(ThingDef raceDef, object alienPartGeneratorObject, string channelName) {
Expand Down

0 comments on commit 7c7e25d

Please sign in to comment.