Ghosts now make use of the new "entity visibility" engine functionality

This commit is contained in:
zumorica
2020-04-10 16:28:14 +02:00
parent aff9f18bc8
commit 683644eec5
3 changed files with 24 additions and 3 deletions

View File

@@ -34,7 +34,6 @@ namespace Content.Client.GameObjects.Components.Observer
private void SetGhostVisibility(bool visibility)
{
// So, for now this is a client-side hack... Please, PLEASE someone make this work server-side.
foreach (var ghost in _componentManager.GetAllComponents(typeof(GhostComponent)))
{
if (ghost.Owner.TryGetComponent(out SpriteComponent component))