From cd583a0e95f310dfa1937b18dbd659c44c81a65f Mon Sep 17 00:00:00 2001 From: anth64 Date: Thu, 11 Jun 2026 21:56:07 +0200 Subject: [PATCH] refactor: tighten access modifiers on CommandHookModSystem --- CommandHook/CommandHookModSystem.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CommandHook/CommandHookModSystem.cs b/CommandHook/CommandHookModSystem.cs index 58a792f..32e144f 100644 --- a/CommandHook/CommandHookModSystem.cs +++ b/CommandHook/CommandHookModSystem.cs @@ -83,7 +83,7 @@ public class CommandHookModSystem : ModSystem } } - public void Rebuild() + private void Rebuild() { var builder = new Dictionary>(); @@ -122,7 +122,7 @@ public class CommandHookModSystem : ModSystem registrations = pruned.ToFrozenDictionary(); } - public bool FireBefore(string commandName, ref CommandData data) + internal bool FireBefore(string commandName, ref CommandData data) { if (registrations.TryGetValue(commandName, out var mods)) foreach (var (_, reg) in mods) @@ -131,7 +131,7 @@ public class CommandHookModSystem : ModSystem return data.Cancel; } - public void FireAfter(string commandName, ref CommandData data, TextCommandResult result) + internal void FireAfter(string commandName, ref CommandData data, TextCommandResult result) { if (registrations.TryGetValue(commandName, out var mods)) foreach (var (_, reg) in mods)