Skip to content

Commit a1d27ba

Browse files
authored
feat(ecs): Allow command names to be case-insensitive
1 parent c09a54e commit a1d27ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SampSharp.Entities/SAMP/Commands/CommandServiceBase.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public abstract class CommandServiceBase
2828
private readonly IEntityManager _entityManager;
2929
private readonly int _prefixParameters;
3030

31-
private readonly Dictionary<string, List<CommandData>> _commands = new();
31+
private readonly Dictionary<string, List<CommandData>> _commands = new(StringComparer.OrdinalIgnoreCase);
3232

3333
/// <summary>Initializes a new instance of the <see cref="CommandServiceBase" /> class.</summary>
3434
protected CommandServiceBase(IEntityManager entityManager, int prefixParameters)
@@ -364,4 +364,4 @@ private sealed class CommandData
364364
public MethodInvoker Invoke;
365365
public Type SystemType;
366366
}
367-
}
367+
}

0 commit comments

Comments
 (0)