Skip to content

Commit

Permalink
Do not use net8 collection initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepGoMeh committed Dec 28, 2023
1 parent 4451832 commit 4df5e49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Visibility/Configuration/VisibilityConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ public class VisibilityConfiguration: IPluginConfiguration

[NonSerialized] public bool PreviewProximityRadius = true;

public List<VoidItem> VoidList { get; } = [];
public List<VoidItem> VoidList { get; } = new();

public List<VoidItem> Whitelist { get; } = [];
public List<VoidItem> Whitelist { get; } = new();

[NonSerialized] public readonly Dictionary<string, Action<bool, bool, bool>> SettingDictionary =
new(StringComparer.InvariantCultureIgnoreCase);

[NonSerialized] public readonly HashSet<ushort> TerritoryTypeWhitelist = [];
[NonSerialized] public readonly HashSet<ushort> TerritoryTypeWhitelist = new();

[NonSerialized] private readonly HashSet<ushort> allowedTerritory = [];
[NonSerialized] private readonly HashSet<ushort> allowedTerritory = new();

[NonSerialized]
public readonly Dictionary<ushort, string> TerritoryPlaceNameDictionary = new() { { 0, "Default" } };
Expand Down

0 comments on commit 4df5e49

Please sign in to comment.