From a1d27ba7179716cb3e61f09d733b098abd6ef56a Mon Sep 17 00:00:00 2001 From: Dave Roman <43916038+MrDave1999@users.noreply.github.com> Date: Sun, 25 Aug 2024 15:16:47 -0500 Subject: [PATCH] feat(ecs): Allow command names to be case-insensitive --- src/SampSharp.Entities/SAMP/Commands/CommandServiceBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SampSharp.Entities/SAMP/Commands/CommandServiceBase.cs b/src/SampSharp.Entities/SAMP/Commands/CommandServiceBase.cs index 7a0a8f0e..2bf354a1 100644 --- a/src/SampSharp.Entities/SAMP/Commands/CommandServiceBase.cs +++ b/src/SampSharp.Entities/SAMP/Commands/CommandServiceBase.cs @@ -28,7 +28,7 @@ public abstract class CommandServiceBase private readonly IEntityManager _entityManager; private readonly int _prefixParameters; - private readonly Dictionary> _commands = new(); + private readonly Dictionary> _commands = new(StringComparer.OrdinalIgnoreCase); /// Initializes a new instance of the class. protected CommandServiceBase(IEntityManager entityManager, int prefixParameters) @@ -364,4 +364,4 @@ private sealed class CommandData public MethodInvoker Invoke; public Type SystemType; } -} \ No newline at end of file +}