Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -131,7 +131,7 @@ namespace Content.Client.Tabletop
|
||||
// Get the camera entity that the server has created for us
|
||||
var camera = GetEntity(msg.CameraUid);
|
||||
|
||||
if (!EntityManager.TryGetComponent<EyeComponent>(camera, out var eyeComponent))
|
||||
if (!TryComp<EyeComponent>(camera, out var eyeComponent))
|
||||
{
|
||||
// If there is no eye, print error and do not open any window
|
||||
Log.Error("Camera entity does not have eye component!");
|
||||
@@ -258,7 +258,7 @@ namespace Content.Client.Tabletop
|
||||
private void StopDragging(bool broadcast = true)
|
||||
{
|
||||
// Set the dragging player on the component to noone
|
||||
if (broadcast && _draggedEntity != null && EntityManager.HasComponent<TabletopDraggableComponent>(_draggedEntity.Value))
|
||||
if (broadcast && _draggedEntity != null && HasComp<TabletopDraggableComponent>(_draggedEntity.Value))
|
||||
{
|
||||
RaisePredictiveEvent(new TabletopMoveEvent(GetNetEntity(_draggedEntity.Value), Transforms.GetMapCoordinates(_draggedEntity.Value), GetNetEntity(_table!.Value)));
|
||||
RaisePredictiveEvent(new TabletopDraggingPlayerChangedEvent(GetNetEntity(_draggedEntity.Value), false));
|
||||
|
||||
Reference in New Issue
Block a user