Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
bool flag = (apparel.Wearer == null && apparel.Wearer.genes != null && !KijinSettings.UseKijinCloth && apparel.Wearer.genes.Xenotype == Kijin3Defof.KijinXenotype && !KijinSettings.UseKijinClothEnemyFaction) || !__result || apparel.Wearer == null || apparel.Wearer.genes.Xenotype != Kijin3Defof.KijinXenotype;
It looks like it's trying to access apparel.Wearer.genes even when apparel.Wearer might be null — that would likely throw a NullReferenceException.
Just to be safe, I’d suggest rewriting it like this:
bool flag = !__result || !KijinSettings.UseKijinCloth || !KijinSettings.UseKijinClothEnemyFaction || wearer == null || wearer.genes == null || wearer.genes.Xenotype != Kijin3Defof.KijinXenotype;
Hope that helps!
it is used for making shirne. If used, it buffs up mood a bit
solid solution. I'll do some testing and update it
I'd like to report a compatibility issue that causes a rendering error when used with my mod. The cause seems to be this patch method:
KijinApparelOption_Patch(ref Apparel apparel, ref ApparelGraphicRecord rec, ref bool __result)
Screenshot: {LINK REMOVED}https://imgur.com/crGt5OE
The line apparel.Wearer.genes.Xenotype assumes that apparel.Wearer.genes is always non-null, but some pawns (e.g. animals, mechanoids, or modded pawns) don’t have a Pawn_GeneTracker, which causes a NullReferenceException.
Please consider updating the condition like this:
if (apparel.Wearer != null && apparel.Wearer.genes != null && apparel.Wearer.genes.Xenotype == Kijin3Defof.KijinXenotype)
This issue affects versions 1.6, 1.5, and 1.4.
I'd appreciate it if the fix could be applied to all of them.
Thanks!