Add admin alerts for explosions (#15786)

This commit is contained in:
Chief-Engineer
2023-04-27 13:55:16 -05:00
committed by GitHub
parent d2533265c5
commit 6c7be60a10
3 changed files with 18 additions and 1 deletions

View File

@@ -118,7 +118,8 @@ namespace Content.Server.Chat.Managers
public void SendAdminAlert(EntityUid player, string message, MindComponent? mindComponent = null)
{
if(mindComponent == null && !_entityManager.TryGetComponent(player, out mindComponent))
if((mindComponent == null && !_entityManager.TryGetComponent(player, out mindComponent))
|| mindComponent.Mind == null)
{
SendAdminAlert(message);
return;