Undo the CompPostPostRemoved checks, if nothing else to see what bug made them be added in the first place

This commit is contained in:
lutepickle 2022-07-11 09:03:20 -07:00
parent 902cd65375
commit 20692aaf13
2 changed files with 6 additions and 25 deletions

View file

@ -187,17 +187,9 @@ namespace RJW_Menstruation
public override void CompPostPostRemoved() public override void CompPostPostRemoved()
{ {
HugsLibController.Instance.TickDelayScheduler.TryUnscheduleCallback(action);
if (parent?.pawn?.GetBreastComp() == this) Log.Message(parent.pawn.Label + "breast tick scheduler removed");
{ base.CompPostPostRemoved();
Log.Warning("Something tried to remove hediff with wrong way.");
}
else
{
HugsLibController.Instance.TickDelayScheduler.TryUnscheduleCallback(action);
Log.Message(parent.pawn.Label + "breast tick scheduler removed");
base.CompPostPostRemoved();
}
} }
protected long CalculateLastBirth() protected long CalculateLastBirth()

View file

@ -542,22 +542,11 @@ namespace RJW_Menstruation
public override void CompPostPostRemoved() public override void CompPostPostRemoved()
{ {
if (parent?.pawn?.GetMenstruationComp() == this) HugsLibController.Instance.TickDelayScheduler.TryUnscheduleCallback(actionref);
{ Log.Message(parent.pawn.Label + "tick scheduler removed");
Log.Warning("Something tried to remove hediff with wrong way."); base.CompPostPostRemoved();
}
else
{
HugsLibController.Instance.TickDelayScheduler.TryUnscheduleCallback(actionref);
Log.Message(parent.pawn.Label + "tick scheduler removed");
base.CompPostPostRemoved();
}
} }
/// <summary> /// <summary>
/// Get fluid in womb that not a cum /// Get fluid in womb that not a cum
/// </summary> /// </summary>