ChatManager ChatTransform uses EntityUid

This commit is contained in:
Vera Aguilera Puerto
2021-11-09 11:30:59 +01:00
parent 1a177f7479
commit f025e5f0a8
3 changed files with 5 additions and 5 deletions

View File

@@ -17,11 +17,11 @@ namespace Content.Server.Speech
_chatManager.RegisterChatTransform(AccentHandler);
}
public string AccentHandler(IEntity player, string message)
public string AccentHandler(EntityUid playerUid, string message)
{
var accentEvent = new AccentGetEvent(player.Uid, message);
var accentEvent = new AccentGetEvent(playerUid, message);
RaiseLocalEvent(player.Uid, accentEvent);
RaiseLocalEvent(playerUid, accentEvent);
return accentEvent.Message;
}