From b823d126d2fabac0cb8e0af3f4d7ab8594ee1aed Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 7 Dec 2018 13:39:58 -0500 Subject: fix location warps when propagating map changes (#608) --- src/SMAPI/Metadata/CoreAssetPropagator.cs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src') diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs index 8083b4b1..d273c251 100644 --- a/src/SMAPI/Metadata/CoreAssetPropagator.cs +++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs @@ -95,6 +95,7 @@ namespace StardewModdingAPI.Metadata if (this.GetNormalisedPath(location.mapPath.Value) == key) { this.Reflection.GetMethod(location, "reloadMap").Invoke(); + this.Reflection.GetMethod(location, "updateWarps").Invoke(); anyChanged = true; } } @@ -641,24 +642,6 @@ namespace StardewModdingAPI.Metadata this.Reflection.GetField(sprite, "spriteTexture").SetValue(texture); } - /// Get an NPC name from the name of their file under Content/Characters. - /// The file name. - /// Derived from . - private string GetNpcNameFromFileName(string name) - { - switch (name) - { - case "Mariner": - return "Old Mariner"; - case "DwarfKing": - return "Dwarf King"; - case "MrQi": - return "Mister Qi"; - default: - return name; - } - } - /// Get all NPCs in the game (excluding farm animals). private IEnumerable GetCharacters() { -- cgit