diff options
Diffstat (limited to 'src/SMAPI/Events')
-rw-r--r-- | src/SMAPI/Events/AssetsInvalidatedEventArgs.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/SMAPI/Events/AssetsInvalidatedEventArgs.cs b/src/SMAPI/Events/AssetsInvalidatedEventArgs.cs index 0127f83a..f3d83dd6 100644 --- a/src/SMAPI/Events/AssetsInvalidatedEventArgs.cs +++ b/src/SMAPI/Events/AssetsInvalidatedEventArgs.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Collections.Immutable; using System.Linq; namespace StardewModdingAPI.Events @@ -11,7 +12,7 @@ namespace StardewModdingAPI.Events ** Accessors *********/ /// <summary>The asset names that were invalidated.</summary> - public IEnumerable<IAssetName> Names { get; } + public IReadOnlySet<IAssetName> Names { get; } /********* @@ -21,7 +22,7 @@ namespace StardewModdingAPI.Events /// <param name="names">The asset names that were invalidated.</param> internal AssetsInvalidatedEventArgs(IEnumerable<IAssetName> names) { - this.Names = names.ToArray(); + this.Names = names.ToImmutableHashSet(); } } } |