mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
stop null reff errors patch
This commit is contained in:
parent
a3f60cae9f
commit
d2ee848ff0
4 changed files with 2 additions and 1 deletions
Binary file not shown.
Binary file not shown.
|
@ -15,8 +15,9 @@ namespace CRIALactation
|
|||
public static void Prefix(Thing __instance, Pawn ingester)
|
||||
{
|
||||
|
||||
if(__instance.def == ThingDefOf_Milk.HumanMilk || __instance.def == ThingDefOf_Milk.HumanoidMilk)
|
||||
if(__instance?.def == ThingDefOf_Milk.HumanMilk || __instance?.def == ThingDefOf_Milk.HumanoidMilk)
|
||||
{
|
||||
if (ingester.TryGetComp<CompInduceLactation>() == null) return;
|
||||
ingester.TryGetComp<CompInduceLactation>().lastHumanLactationIngestedTick = Find.TickManager.TicksGame;
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue