using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controllers;
using Robust.Shared.Configuration;
+using Robust.Shared.Map;
using Robust.Shared.Timing;
namespace Content.Client.UserInterface.Systems.Viewport;
_entMan.TryGetComponent(ent, out EyeComponent? eye);
if (eye?.Eye == _eyeManager.CurrentEye
- && (_transformSystem is null || _transformSystem.GetWorldPosition(ent.Value) == default))
- return; // nothing to worry about, the player is just in null space... actually that is probably a problem?
+ && _entMan.GetComponent<TransformComponent>(ent.Value).MapID == MapId.Nullspace)
+ {
+ // nothing to worry about, the player is just in null space... actually that is probably a problem?
+ return;
+ }
// Currently, this shouldn't happen. This likely happened because the main eye was set to null. When this
// does happen it can create hard to troubleshoot bugs, so lets print some helpful warnings: