summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-05-17 19:41:26 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 17:58:39 -0400
commit2b12bb32f67422a7d25eb7e2d8ea8e1c3e335708 (patch)
tree6dd1330612dccc73e6f2652fcc01aa687af4ccc7 /src/SMAPI/Framework
parent5cd5e2416dfe6eab1a36be1646890d57f3f4a191 (diff)
downloadSMAPI-2b12bb32f67422a7d25eb7e2d8ea8e1c3e335708.tar.gz
SMAPI-2b12bb32f67422a7d25eb7e2d8ea8e1c3e335708.tar.bz2
SMAPI-2b12bb32f67422a7d25eb7e2d8ea8e1c3e335708.zip
batch reload assets in some cases
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r--src/SMAPI/Framework/ContentCoordinator.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/SMAPI/Framework/ContentCoordinator.cs b/src/SMAPI/Framework/ContentCoordinator.cs
index 25eeb2ef..15f1c163 100644
--- a/src/SMAPI/Framework/ContentCoordinator.cs
+++ b/src/SMAPI/Framework/ContentCoordinator.cs
@@ -258,14 +258,7 @@ namespace StardewModdingAPI.Framework
}
// reload core game assets
- int reloaded = 0;
- foreach (var pair in removedAssetNames)
- {
- string key = pair.Key;
- Type type = pair.Value;
- if (this.CoreAssets.Propagate(this.MainContentManager, key, type)) // use an intercepted content manager
- reloaded++;
- }
+ int reloaded = this.CoreAssets.Propagate(this.MainContentManager, removedAssetNames); // use an intercepted content manager
// report result
if (removedAssetNames.Any())