summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ContentManagers
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-13 22:19:45 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-13 22:19:45 -0400
commitff1b4cd323384d472cb5028529017b52746958c0 (patch)
tree3408a38ded2946b62b957e92c08f9afb9ad5e8b0 /src/SMAPI/Framework/ContentManagers
parent3078ae2a8e10294c86f8702769e15da16511ecde (diff)
downloadSMAPI-ff1b4cd323384d472cb5028529017b52746958c0.tar.gz
SMAPI-ff1b4cd323384d472cb5028529017b52746958c0.tar.bz2
SMAPI-ff1b4cd323384d472cb5028529017b52746958c0.zip
remove reflection no longer needed after migration to MonoGame
Diffstat (limited to 'src/SMAPI/Framework/ContentManagers')
-rw-r--r--src/SMAPI/Framework/ContentManagers/BaseContentManager.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ContentManagers/BaseContentManager.cs b/src/SMAPI/Framework/ContentManagers/BaseContentManager.cs
index 5ae5313d..613df023 100644
--- a/src/SMAPI/Framework/ContentManagers/BaseContentManager.cs
+++ b/src/SMAPI/Framework/ContentManagers/BaseContentManager.cs
@@ -89,7 +89,8 @@ namespace StardewModdingAPI.Framework.ContentManagers
// init
this.Name = name;
this.Coordinator = coordinator ?? throw new ArgumentNullException(nameof(coordinator));
- this.Cache = new ContentCache(this, reflection);
+ // ReSharper disable once VirtualMemberCallInConstructor -- LoadedAssets isn't overridden by SMAPI or Stardew Valley
+ this.Cache = new ContentCache(this.LoadedAssets);
this.Monitor = monitor ?? throw new ArgumentNullException(nameof(monitor));
this.Reflection = reflection;
this.OnDisposing = onDisposing;