diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-13 22:19:45 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-13 22:19:45 -0400 |
commit | ff1b4cd323384d472cb5028529017b52746958c0 (patch) | |
tree | 3408a38ded2946b62b957e92c08f9afb9ad5e8b0 /src/SMAPI/Framework/ContentManagers | |
parent | 3078ae2a8e10294c86f8702769e15da16511ecde (diff) | |
download | SMAPI-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.cs | 3 |
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; |