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:40:19 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-07 16:40:19 -0500
commit13ed6decf55a7fd72c34b965397011d3012cb9cc (patch)
treee0e1f96a2e8a24c116a437126c89cc4ba5a1c430 /src/SMAPI/Metadata/CoreAssetPropagator.cs
parenta78b1935928919694dfe8de823a1accd6d222732 (diff)
parent2b3fb71f6a67cb275a71c5f86040db3286310364 (diff)
downloadSMAPI-13ed6decf55a7fd72c34b965397011d3012cb9cc.tar.gz
SMAPI-13ed6decf55a7fd72c34b965397011d3012cb9cc.tar.bz2
SMAPI-13ed6decf55a7fd72c34b965397011d3012cb9cc.zip
Merge branch 'develop' into stable
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();