Remove SharedEye (but content) (#19481)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using System.Numerics;
|
||||
using Content.Server.Tabletop.Components;
|
||||
using Content.Shared.Tabletop.Events;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
@@ -141,8 +140,8 @@ namespace Content.Server.Tabletop
|
||||
|
||||
// Add an eye component and disable FOV
|
||||
var eyeComponent = camera.EnsureComponent<EyeComponent>();
|
||||
eyeComponent.DrawFov = false;
|
||||
eyeComponent.Zoom = tabletop.CameraZoom;
|
||||
_eye.SetDrawFov(camera, false, eyeComponent);
|
||||
_eye.SetZoom(camera, tabletop.CameraZoom, eyeComponent);
|
||||
|
||||
// Add the user to the view subscribers. If there is no player session, just skip this step
|
||||
_viewSubscriberSystem.AddViewSubscriber(camera, player);
|
||||
|
||||
Reference in New Issue
Block a user