notfood / RimWorld-Outfitted

Outfit management
2 stars 9 forks source link

Fixes compatibility with Animal Genetics by respecting the "alwaysHidden" flag #11

Closed EthanKetell closed 3 years ago

EthanKetell commented 3 years ago

Animal Genetics uses mostly-empty StatDefs which lack labels and categories. This change makes it so the alwaysHide flag is respected when displaying the stats window, bypassing a null reference exception at i.category.displayOrder

EthanKetell commented 3 years ago

This could also be done more directly with a null check for i.category, but hiding things that are supposed to never show up makes sense, too.

notfood commented 3 years ago

Reasonable