update for NPC schedule changes (#638)

This commit is contained in:
Jesse Plamondon-Willard 2019-11-08 22:53:51 -05:00
parent 39214fd23f
commit 012ff7ec43
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
1 changed files with 2 additions and 0 deletions

View File

@ -777,6 +777,8 @@ namespace StardewModdingAPI.Metadata
foreach (NPC villager in villagers)
{
// reload schedule
this.Reflection.GetField<bool>(villager, "_hasLoadedMasterScheduleData").SetValue(false);
this.Reflection.GetField<Dictionary<string, string>>(villager, "_masterScheduleData").SetValue(null);
villager.Schedule = villager.getSchedule(Game1.dayOfMonth);
if (villager.Schedule == null)
{