Inline HasComponent entirely
This commit is contained in:
@@ -153,7 +153,7 @@ namespace Content.Server.Chat.Managers
|
||||
var transform = player.AttachedEntity.Transform;
|
||||
|
||||
if (transform.MapID != sourceMapId ||
|
||||
!player.AttachedEntity.HasComponent<GhostComponent>() &&
|
||||
!IoCManager.Resolve<IEntityManager>().HasComponent<GhostComponent>(player.AttachedEntity.Uid) &&
|
||||
!sourceCoords.InRange(_entManager, transform.Coordinates, VoiceRange)) continue;
|
||||
|
||||
clients.Add(player.ConnectedClient);
|
||||
|
||||
Reference in New Issue
Block a user