fix interior door errors when reloading maps

This commit is contained in:
Jesse Plamondon-Willard 2021-01-24 00:32:26 -05:00
parent 4c0272c0aa
commit 5129c361c9
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 4 additions and 2 deletions

View File

@ -8,8 +8,9 @@
-->
## Upcoming release
* For the Error Handler mod:
* Disabled 'patched game code' warning.
* For players:
* Fixed _tile contains an invalid TileSheet reference_ errors when mods change certain maps.
* Fixed _patched game code_ issue shown for the bundled ErrorHandler mod.
## 3.9
Released 22 January 2021 for Stardew Valley 1.5.4 or later. See [release highlights](https://www.patreon.com/posts/46553874).

View File

@ -785,6 +785,7 @@ namespace StardewModdingAPI.Metadata
private void ReloadMap(GameLocation location)
{
// reload map
location.interiorDoors.Clear(); // prevent errors when doors try to update tiles which no longer exist
location.reloadMap();
location.updateWarps();
location.MakeMapModifications(force: true);