Remove (some?) pop-up error spam. (#8538)

This commit is contained in:
Leon Friedrich
2022-06-03 22:42:59 +12:00
committed by GitHub
parent b29ed6e03a
commit 763b79bbf9

View File

@@ -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
{