RWA-Team / RimworldAscension

Rimworld Ascension Mod Repository
6 stars 1 forks source link

Switch this 2 checks, so game check for comp first when choose color #184

Closed Tapk0vich closed 7 years ago

Tapk0vich commented 7 years ago
public virtual Color DrawColor
{
    get
    {
        if (this.Stuff != null)
        {
            return this.Stuff.stuffProps.color;
        }
        if (this.def.graphicData != null)
        {
            return this.def.graphicData.color;
        }
        return Color.white;
    }
    set
    {
        Log.Error(string.Concat(new object[]
        {
            "Cannot set instance color on non-ThingWithComps ",
            this.LabelCap,
            " at ",
            this.Position,
            "."
        }));
    }
}
Wivex commented 7 years ago

fixed