Fix 3000 errors
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
using Content.Server.Atmos.Components;
|
||||
using Content.Server.Atmos.EntitySystems;
|
||||
using Content.Server.Doors.Components;
|
||||
using Content.Server.Power.Components;
|
||||
using Content.Server.Shuttles.Components;
|
||||
@@ -112,7 +110,7 @@ namespace Content.Server.Shuttles.EntitySystems
|
||||
if (dockingFixture == null)
|
||||
{
|
||||
DebugTools.Assert(false);
|
||||
Logger.ErrorS("docking", $"Found null fixture on {EntityManager.GetEntity(((IComponent) body).Owner)}");
|
||||
Logger.ErrorS("docking", $"Found null fixture on {((IComponent) body).Owner)}"
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -146,7 +144,7 @@ namespace Content.Server.Shuttles.EntitySystems
|
||||
if (otherDockingFixture == null)
|
||||
{
|
||||
DebugTools.Assert(false);
|
||||
Logger.ErrorS("docking", $"Found null docking fixture on {EntityManager.GetEntity(ent)}");
|
||||
Logger.ErrorS("docking", $"Found null docking fixture on {ent)}"
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace Content.Server.Shuttles.EntitySystems
|
||||
return;
|
||||
}
|
||||
|
||||
var pilotComponent = EntityManager.EnsureComponent<PilotComponent>((EntityUid) args.User);
|
||||
var pilotComponent = EntityManager.EnsureComponent<PilotComponent>(args.User);
|
||||
|
||||
if (!component.Enabled)
|
||||
{
|
||||
@@ -130,7 +130,7 @@ namespace Content.Server.Shuttles.EntitySystems
|
||||
ClearPilots(component);
|
||||
}
|
||||
|
||||
public void AddPilot(IEntity entity, ShuttleConsoleComponent component)
|
||||
public void AddPilot(EntityUid entity, ShuttleConsoleComponent component)
|
||||
{
|
||||
if (!_blocker.CanInteract(entity) ||
|
||||
!IoCManager.Resolve<IEntityManager>().TryGetComponent(entity, out PilotComponent? pilotComponent) ||
|
||||
@@ -174,7 +174,7 @@ namespace Content.Server.Shuttles.EntitySystems
|
||||
EntityManager.RemoveComponent<PilotComponent>(pilotComponent.Owner);
|
||||
}
|
||||
|
||||
public void RemovePilot(IEntity entity)
|
||||
public void RemovePilot(EntityUid entity)
|
||||
{
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(entity, out PilotComponent? pilotComponent)) return;
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace Content.Server.Shuttles.EntitySystems
|
||||
|
||||
private void OnGridInit(GridInitializeEvent ev)
|
||||
{
|
||||
EntityManager.GetEntity(ev.EntityUid).EnsureComponent<ShuttleComponent>();
|
||||
ev.EntityUid).EnsureComponent<ShuttleComponent>(
|
||||
}
|
||||
|
||||
private void OnShuttleStartup(EntityUid uid, ShuttleComponent component, ComponentStartup args)
|
||||
|
||||
Reference in New Issue
Block a user