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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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
{