Have the debug due date work off of the tile

This commit is contained in:
lutepickle 2022-08-27 11:53:55 -07:00
parent c62b87ff8b
commit 89248897f0
1 changed files with 2 additions and 2 deletions

View File

@ -728,8 +728,8 @@ namespace RJW_Menstruation
public string DueDate()
{
if (pawn.Map == null) return "";
return GenDate.DateFullStringWithHourAt(GenDate.TickGameToAbs((int)p_end_tick), Find.WorldGrid.LongLatOf(pawn.Map.Tile));
if (pawn.Tile == -1) return "";
return GenDate.DateFullStringWithHourAt(GenDate.TickGameToAbs((int)p_end_tick), Find.WorldGrid.LongLatOf(pawn.Tile));
}
}