This commit is contained in:
zumorica
2020-03-30 01:15:43 +02:00
parent aba3b0217e
commit a07c407f2e
4 changed files with 25 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
using Content.Server.Interfaces.Chat;
using Content.Server.Observer;
using Robust.Server.Interfaces.Console;
using Robust.Server.Interfaces.Player;
using Robust.Shared.Enums;
@@ -24,7 +25,10 @@ namespace Content.Server.Chat
var message = string.Join(" ", args);
chat.EntitySay(player.AttachedEntity, message);
if (player.AttachedEntity.HasComponent<GhostComponent>())
chat.SendDeadChat(player, message);
else
chat.EntitySay(player.AttachedEntity, message);
}
}