Skip to content

Commit

Permalink
fix: nre fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
VALERA771 committed Dec 24, 2024
1 parent 3e81738 commit 04464df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public static void SendToAll(Func<Player, bool> predicate)
/// <remarks>This method is used to sync new settings with players.</remarks>
public static IEnumerable<SettingBase> Register(IEnumerable<SettingBase> settings, Func<Player, bool> predicate = null)
{
List<SettingBase> list = ListPool<SettingBase>.Pool.Get(settings);
List<SettingBase> list = ListPool<SettingBase>.Pool.Get(settings.Where(x => x != null));
List<SettingBase> list2 = new(list.Count);

while (list.Exists(x => x.Header != null))
Expand Down

0 comments on commit 04464df

Please sign in to comment.