Merge branch 'develop' into stable

This commit is contained in:
Jesse Plamondon-Willard 2020-06-21 11:39:37 -04:00
commit ba0dff819f
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
6 changed files with 12 additions and 7 deletions

View File

@ -4,7 +4,7 @@
<!--set properties --> <!--set properties -->
<PropertyGroup> <PropertyGroup>
<Version>3.6.0</Version> <Version>3.6.1</Version>
<Product>SMAPI</Product> <Product>SMAPI</Product>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>

View File

@ -7,6 +7,11 @@
* Migrated to Harmony 2.0 (see [_migrate to Harmony 2.0_](https://stardewvalleywiki.com/Modding:Migrate_to_Harmony_2.0) for more info). * Migrated to Harmony 2.0 (see [_migrate to Harmony 2.0_](https://stardewvalleywiki.com/Modding:Migrate_to_Harmony_2.0) for more info).
--> -->
## 3.6.1
Released 21 June 2020 for Stardew Valley 1.4.1 or later.
* Fixed event priority sorting.
## 3.6 ## 3.6
Released 20 June 2020 for Stardew Valley 1.4.1 or later. Released 20 June 2020 for Stardew Valley 1.4.1 or later.

View File

@ -1,9 +1,9 @@
{ {
"Name": "Console Commands", "Name": "Console Commands",
"Author": "SMAPI", "Author": "SMAPI",
"Version": "3.6.0", "Version": "3.6.1",
"Description": "Adds SMAPI console commands that let you manipulate the game.", "Description": "Adds SMAPI console commands that let you manipulate the game.",
"UniqueID": "SMAPI.ConsoleCommands", "UniqueID": "SMAPI.ConsoleCommands",
"EntryDll": "ConsoleCommands.dll", "EntryDll": "ConsoleCommands.dll",
"MinimumApiVersion": "3.6.0" "MinimumApiVersion": "3.6.1"
} }

View File

@ -1,9 +1,9 @@
{ {
"Name": "Save Backup", "Name": "Save Backup",
"Author": "SMAPI", "Author": "SMAPI",
"Version": "3.6.0", "Version": "3.6.1",
"Description": "Automatically backs up all your saves once per day into its folder.", "Description": "Automatically backs up all your saves once per day into its folder.",
"UniqueID": "SMAPI.SaveBackup", "UniqueID": "SMAPI.SaveBackup",
"EntryDll": "SaveBackup.dll", "EntryDll": "SaveBackup.dll",
"MinimumApiVersion": "3.6.0" "MinimumApiVersion": "3.6.1"
} }

View File

@ -20,7 +20,7 @@ namespace StardewModdingAPI
** Public ** Public
****/ ****/
/// <summary>SMAPI's current semantic version.</summary> /// <summary>SMAPI's current semantic version.</summary>
public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.6.0"); public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.6.1");
/// <summary>The minimum supported version of Stardew Valley.</summary> /// <summary>The minimum supported version of Stardew Valley.</summary>
public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.4.1"); public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.4.1");

View File

@ -47,7 +47,7 @@ namespace StardewModdingAPI.Framework.Events
if (!(obj is ManagedEventHandler<TEventArgs> other)) if (!(obj is ManagedEventHandler<TEventArgs> other))
throw new ArgumentException("Can't compare to an unrelated object type."); throw new ArgumentException("Can't compare to an unrelated object type.");
int priorityCompare = this.Priority.CompareTo(other.Priority); int priorityCompare = -this.Priority.CompareTo(other.Priority); // higher value = sort first
return priorityCompare != 0 return priorityCompare != 0
? priorityCompare ? priorityCompare
: this.RegistrationOrder.CompareTo(other.RegistrationOrder); : this.RegistrationOrder.CompareTo(other.RegistrationOrder);