diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-12-07 13:39:58 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-12-07 13:39:58 -0500 |
commit | b823d126d2fabac0cb8e0af3f4d7ab8594ee1aed (patch) | |
tree | 622dce68e0e5d447ff82028f90e2568ac5941cd7 /src/SMAPI/Metadata | |
parent | 2b97b9f701452bbcdc7bfb5c433b9906c595b195 (diff) | |
download | SMAPI-b823d126d2fabac0cb8e0af3f4d7ab8594ee1aed.tar.gz SMAPI-b823d126d2fabac0cb8e0af3f4d7ab8594ee1aed.tar.bz2 SMAPI-b823d126d2fabac0cb8e0af3f4d7ab8594ee1aed.zip |
fix location warps when propagating map changes (#608)
Diffstat (limited to 'src/SMAPI/Metadata')
-rw-r--r-- | src/SMAPI/Metadata/CoreAssetPropagator.cs | 19 |
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() { |