summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs19
1 files changed, 1 insertions, 18 deletions
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<Texture2D>(sprite, "spriteTexture").SetValue(texture);
}
- /// <summary>Get an NPC name from the name of their file under <c>Content/Characters</c>.</summary>
- /// <param name="name">The file name.</param>
- /// <remarks>Derived from <see cref="NPC.reloadSprite"/>.</remarks>
- 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;
- }
- }
-
/// <summary>Get all NPCs in the game (excluding farm animals).</summary>
private IEnumerable<NPC> GetCharacters()
{