Only show the "tick scheduler removed" messages when debug is enabled

This commit is contained in:
lutepickle 2022-07-22 08:50:45 -07:00
parent d8fcb15f39
commit 2407b52e3b
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ namespace RJW_Menstruation
return;
}
HugsLibController.Instance.TickDelayScheduler.TryUnscheduleCallback(action);
Log.Message(parent.pawn.Label + " breast tick scheduler removed");
if (Configurations.Debug) Log.Message(parent.pawn.Label + " breast tick scheduler removed");
base.CompPostPostRemoved();
}

View File

@ -517,7 +517,7 @@ namespace RJW_Menstruation
return;
}
HugsLibController.Instance.TickDelayScheduler.TryUnscheduleCallback(actionref);
Log.Message(parent.pawn.Label + " tick scheduler removed");
if (Configurations.Debug) Log.Message(parent.pawn.Label + " menstruation tick scheduler removed");
pregnancy?.Miscarry();
base.CompPostPostRemoved();
}