diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-03-25 22:16:49 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-03-25 22:16:49 -0400 |
commit | 9025b0dcc5c537cbde37aef2482ccd942eb9769f (patch) | |
tree | 4fdba25617b20105b8ae25e558b62cdb28d4df37 /src/SMAPI | |
parent | e1fc566e0afeb6eb92418bb039365611abd33829 (diff) | |
download | SMAPI-9025b0dcc5c537cbde37aef2482ccd942eb9769f.tar.gz SMAPI-9025b0dcc5c537cbde37aef2482ccd942eb9769f.tar.bz2 SMAPI-9025b0dcc5c537cbde37aef2482ccd942eb9769f.zip |
fix asset load conflict always showing multiple-mod form
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Framework/ContentManagers/GameContentManager.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ContentManagers/GameContentManager.cs b/src/SMAPI/Framework/ContentManagers/GameContentManager.cs index 58e36128..8bdb39d0 100644 --- a/src/SMAPI/Framework/ContentManagers/GameContentManager.cs +++ b/src/SMAPI/Framework/ContentManagers/GameContentManager.cs @@ -400,7 +400,10 @@ namespace StardewModdingAPI.Framework.ContentManagers return true; } - string[] loaderNames = loaders.Select(p => p.Mod.DisplayName).ToArray(); + string[] loaderNames = loaders + .Select(p => p.Mod.DisplayName) + .Distinct() + .ToArray(); string errorPhrase = loaderNames.Length > 1 ? $"Multiple mods want to provide '{info.Name}' asset ({string.Join(", ", loaderNames)})" : $"The '{loaderNames[0]}' mod wants to provide the '{info.Name}' asset multiple times"; |