diff --git a/1.3/Assemblies/RJW_Menstruation.dll b/1.3/Assemblies/RJW_Menstruation.dll index a0bf21e..f82dc69 100644 Binary files a/1.3/Assemblies/RJW_Menstruation.dll and b/1.3/Assemblies/RJW_Menstruation.dll differ diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/Things.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/Things.cs index ef1f0fa..324f428 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/Things.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/Things.cs @@ -102,7 +102,7 @@ namespace RJW_Menstruation { get { - return thingDefName?.Length < 1; + return (thingDefName?.Length ?? 0) < 1; } } public ThingDef GetDef @@ -131,7 +131,7 @@ namespace RJW_Menstruation if (hybridExtension.NullOrEmpty()) return null; else { - return hybridExtension.Find(x => x.GetDef.defName?.Equals(race) ?? false); + return hybridExtension.Find(x => x.GetDef?.defName?.Equals(race) ?? false); } } @@ -165,7 +165,7 @@ namespace RJW_Menstruation { get { - return thingDefName?.Length < 1; + return (thingDefName?.Length ?? 0) < 1; } } public ThingDef GetDef