as per comments, remove where in favor of nullchecking id instead
This commit is contained in:
parent
58ccaf9a1e
commit
c12e9d788e
|
@ -178,10 +178,12 @@ namespace StardewModdingAPI.Framework.ModLoading
|
|||
string[] lateArray = modIdsToLoadLate.ToArray();
|
||||
|
||||
return mods
|
||||
.Where(mod => mod.FailReason is not null)
|
||||
.OrderBy(mod =>
|
||||
{
|
||||
string id = mod.Manifest.UniqueID;
|
||||
string? id = mod.Manifest?.UniqueID;
|
||||
|
||||
if (id is null)
|
||||
return 0;
|
||||
|
||||
if (modIdsToLoadEarly.TryGetValue(id, out string? actualId))
|
||||
return -int.MaxValue + Array.IndexOf(earlyArray, actualId);
|
||||
|
|
Loading…
Reference in New Issue