Remove (some?) pop-up error spam. (#8538)
This commit is contained in:
parent
b29ed6e03a
commit
763b79bbf9
|
|
@ -259,7 +259,8 @@ namespace Content.Client.Popups
|
|||
|
||||
if (Entity == null)
|
||||
screenCoords = _eyeManager.CoordinatesToScreen(InitialPos);
|
||||
else if (_entityManager.TryGetComponent(Entity.Value, out TransformComponent xform))
|
||||
else if (_entityManager.TryGetComponent(Entity.Value, out TransformComponent xform)
|
||||
&& xform.MapID == _eyeManager.CurrentMap)
|
||||
screenCoords = _eyeManager.CoordinatesToScreen(xform.Coordinates);
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue