reset map overrides when reloading a map (#751)
This commit is contained in:
parent
9fb6d67417
commit
00e545715d
|
@ -18,6 +18,7 @@
|
|||
* Network messages through the multiplayer API are no longer sent to players who don't have SMAPI installed. This reduces unneeded network traffic (since they can't read it anyway) and avoids an error in some cases.
|
||||
* Improved asset propagation:
|
||||
* Added propagation for some `Strings\StringsFromCSFiles` keys (mainly short day names).
|
||||
* Fixed some town patches not reapplied when the map is reloaded in Stardew Valley 1.5.
|
||||
* Added an option to disable rewriting mods for compatibility (thanks to Bpendragon!). This prevents older mods from loading but bypasses a Visual Studio debugger crash.
|
||||
* Game errors shown in the chatbox are now logged.
|
||||
|
||||
|
|
|
@ -785,6 +785,7 @@ namespace StardewModdingAPI.Metadata
|
|||
private void ReloadMap(GameLocation location)
|
||||
{
|
||||
// reset patch caches
|
||||
this.Reflection.GetField<HashSet<string>>(location, "_appliedMapOverrides").GetValue().Clear();
|
||||
switch (location)
|
||||
{
|
||||
case Town _:
|
||||
|
|
Loading…
Reference in New Issue