bugfixes for recent rimworld update

This commit is contained in:
c0ffee 2022-06-09 17:51:12 -07:00
parent d2ee848ff0
commit 91fd071eba
5 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>C0ffeeRIA</identifier>
<version>0.0.3</version>
<version>0.0.4</version>
</Manifest>

View file

@ -15,6 +15,8 @@ namespace CRIALactation
protected override ThoughtState ShouldHaveThought(Pawn p, Pawn otherPawn)
{
if (p == null || otherPawn == null) return false;
if (!LactationUtility.HasMilkableBreasts(otherPawn)) return false;
if (LactationUtility.IsHucow(otherPawn))
@ -27,7 +29,7 @@ namespace CRIALactation
}
if(!otherPawn.ageTracker.Adult)
if(otherPawn.ageTracker?.Adult == null || !otherPawn.ageTracker.Adult)
{
return false;
}

Binary file not shown.