update release notes & tweak recent changes
This commit is contained in:
parent
d13046edb6
commit
d2134f0f70
|
@ -9,12 +9,15 @@
|
|||
|
||||
## Upcoming release
|
||||
* For players:
|
||||
* Fixed `findstr` error in installer for some players.
|
||||
* Updated to [FluentHttpClient](https://github.com/Pathoschild/FluentHttpClient#readme) 4.3.0 (see [changes](https://github.com/Pathoschild/FluentHttpClient/blob/develop/RELEASE-NOTES.md#430)).
|
||||
* Fixed `findstr` installer error for some players.
|
||||
* Fixed installer error for some Linux users due to a non-portable shebang (thanks to freyacoded!).
|
||||
* Fixed error using load order overrides when there are broken mods installed (thanks to atravita!).
|
||||
* Removed `LargeAddressAware` flag on SMAPI (no longer needed since it's 64-bit now).
|
||||
* Improved translations. Thganks to stylemate (updated Korean)!
|
||||
|
||||
* For mod authors:
|
||||
* Added `IsActiveForScreen()` method to `PerScreen<T>`.
|
||||
* Updated to [FluentHttpClient](https://github.com/Pathoschild/FluentHttpClient#readme) 4.3.0 (see [changes](https://github.com/Pathoschild/FluentHttpClient/blob/develop/RELEASE-NOTES.md#430)).
|
||||
|
||||
## 3.18.2
|
||||
Released 09 January 2023 for Stardew Valley 1.5.6 or later.
|
||||
|
|
|
@ -182,14 +182,14 @@ namespace StardewModdingAPI.Framework.ModLoading
|
|||
{
|
||||
string? id = mod.Manifest?.UniqueID;
|
||||
|
||||
if (id is null)
|
||||
return 0;
|
||||
if (id is not null)
|
||||
{
|
||||
if (modIdsToLoadEarly.TryGetValue(id, out string? actualId))
|
||||
return -int.MaxValue + Array.IndexOf(earlyArray, actualId);
|
||||
|
||||
if (modIdsToLoadEarly.TryGetValue(id, out string? actualId))
|
||||
return -int.MaxValue + Array.IndexOf(earlyArray, actualId);
|
||||
|
||||
if (modIdsToLoadLate.TryGetValue(id, out actualId))
|
||||
return int.MaxValue - Array.IndexOf(lateArray, actualId);
|
||||
if (modIdsToLoadLate.TryGetValue(id, out actualId))
|
||||
return int.MaxValue - Array.IndexOf(lateArray, actualId);
|
||||
}
|
||||
|
||||
return 0;
|
||||
})
|
||||
|
|
|
@ -433,7 +433,7 @@ namespace StardewModdingAPI.Framework
|
|||
// apply load order customizations
|
||||
if (this.Settings.ModsToLoadEarly.Any() || this.Settings.ModsToLoadLate.Any())
|
||||
{
|
||||
HashSet<string> installedIds = new HashSet<string>(mods.Where(p => p.FailReason is null).Select(p => p.Manifest.UniqueID), StringComparer.OrdinalIgnoreCase);
|
||||
HashSet<string> installedIds = new HashSet<string>(mods.Select(p => p.Manifest?.UniqueID).Where(p => p is not null), StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
string[] missingEarlyMods = this.Settings.ModsToLoadEarly.Where(id => !installedIds.Contains(id)).OrderBy(p => p, StringComparer.OrdinalIgnoreCase).ToArray();
|
||||
string[] missingLateMods = this.Settings.ModsToLoadLate.Where(id => !installedIds.Contains(id)).OrderBy(p => p, StringComparer.OrdinalIgnoreCase).ToArray();
|
||||
|
|
Loading…
Reference in New Issue