Simplify patch signature - only use needed parameters

This commit is contained in:
Claude
2025-11-23 19:45:10 +00:00
parent 4a7fc2c3ec
commit 4641764819

View File

@@ -17,7 +17,7 @@ public class CHRANIBotTNG : IModApi
[HarmonyPatch(typeof(GameManager), "ChatMessageServer")] [HarmonyPatch(typeof(GameManager), "ChatMessageServer")]
public class ChatMessagePatch public class ChatMessagePatch
{ {
static bool Prefix(ClientInfo _cInfo, EChatType _chatType, int _senderEntityId, string _msg, List<int> _recipientEntityIds, EMessageSender _msgSender, BbCodeSupportMode _bbMode) static bool Prefix(ClientInfo _cInfo, string _msg)
{ {
if (_msg != null && _msg.StartsWith("/bot ")) if (_msg != null && _msg.StartsWith("/bot "))
{ {