summaryrefslogtreecommitdiff
path: root/src/SMAPI/Metadata/CoreAssetPropagator.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-07 16:29:06 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-07 16:29:06 -0500
commit085b1be28cc9ecc323f9a29bc319c43a3cfd13e5 (patch)
treedcf6105f625a49699718c5a604c9ed8a6ef1ae9f /src/SMAPI/Metadata/CoreAssetPropagator.cs
parent8ff41110275facadf6dca2814047e8aa6f4a26fa (diff)
downloadSMAPI-085b1be28cc9ecc323f9a29bc319c43a3cfd13e5.tar.gz
SMAPI-085b1be28cc9ecc323f9a29bc319c43a3cfd13e5.tar.bz2
SMAPI-085b1be28cc9ecc323f9a29bc319c43a3cfd13e5.zip
fix error when a location doesn't have a map asset key
Diffstat (limited to 'src/SMAPI/Metadata/CoreAssetPropagator.cs')
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs
index d273c251..90629d7f 100644
--- a/src/SMAPI/Metadata/CoreAssetPropagator.cs
+++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs
@@ -92,7 +92,7 @@ namespace StardewModdingAPI.Metadata
bool anyChanged = false;
foreach (GameLocation location in this.GetLocations())
{
- if (this.GetNormalisedPath(location.mapPath.Value) == key)
+ if (!string.IsNullOrWhiteSpace(location.mapPath.Value) && this.GetNormalisedPath(location.mapPath.Value) == key)
{
this.Reflection.GetMethod(location, "reloadMap").Invoke();
this.Reflection.GetMethod(location, "updateWarps").Invoke();