summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-11-08 22:53:51 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-11-08 22:53:51 -0500
commit012ff7ec4335d48d7542ac9631b132fdbdc9f2d8 (patch)
treea3d1cbe65b648a6573038ab23a1f7a3a2771bd58
parent39214fd23f20b8c6d6f4e753e84b87f111ddf083 (diff)
downloadSMAPI-012ff7ec4335d48d7542ac9631b132fdbdc9f2d8.tar.gz
SMAPI-012ff7ec4335d48d7542ac9631b132fdbdc9f2d8.tar.bz2
SMAPI-012ff7ec4335d48d7542ac9631b132fdbdc9f2d8.zip
update for NPC schedule changes (#638)
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs
index 14ce5aaa..a6bfab5c 100644
--- a/src/SMAPI/Metadata/CoreAssetPropagator.cs
+++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs
@@ -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)
{