Skip to content

Commit

Permalink
Update ChatSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
trest100 committed Jan 18, 2025
1 parent aa1d403 commit e9a9da3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Content.Server/Chat/Systems/ChatSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,16 @@ private bool CanSendInGame(string message, IConsoleShell? shell = null, ICommonS

var mindContainerComponent = player.ContentData()?.Mind;

//BACMEN-EDIT-START
if (player.AttachedEntity.HasValue){
if (_mobStateSystem.IsCritical(player.AttachedEntity!.Value))
{
shell?.WriteError("You in crit!");
return false;
}
}
// BACKMEN-EDIT-END

if (mindContainerComponent == null)
{
shell?.WriteError("You don't have a mind!");
Expand Down

0 comments on commit e9a9da3

Please sign in to comment.