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)