Have the obsolete GetMenstruationComp produce an error

This commit is contained in:
lutepickle 2024-03-16 18:36:33 -07:00
parent b855c5291e
commit 9eff6cc2cd

View file

@ -10,7 +10,7 @@ namespace RJW_Menstruation
{
public static class MenstruationUtility
{
[Obsolete("This method is obsolete. Use GetMenstruationComps or a related function instead", false)]
[Obsolete("This method is obsolete. Use GetMenstruationComps or a related function instead", true)]
public static HediffComp_Menstruation GetMenstruationComp(this Pawn pawn)
{
return pawn.GetFirstMenstruationComp();