Fix 3000 errors
This commit is contained in:
@@ -6,7 +6,6 @@ using Content.Server.Atmos.Piping.EntitySystems;
|
||||
using Content.Server.NodeContainer;
|
||||
using Content.Server.NodeContainer.NodeGroups;
|
||||
using Content.Shared.Administration;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Console;
|
||||
using Robust.Shared.GameObjects;
|
||||
@@ -56,8 +55,7 @@ namespace Content.Server.Sandbox.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
var target = entityManager.GetEntity(eUid);
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(target, out NodeContainerComponent? nodeContainerComponent))
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(eUid, out NodeContainerComponent? nodeContainerComponent))
|
||||
{
|
||||
shell.WriteLine(Loc.GetString("shell-entity-is-not-node-container"));
|
||||
return;
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
using System.Linq;
|
||||
using Content.Server.Access.Components;
|
||||
using Content.Shared.Containers.ItemSlots;
|
||||
using Content.Server.Access.Systems;
|
||||
using Content.Server.GameTicking;
|
||||
using Content.Server.Hands.Components;
|
||||
using Content.Server.Inventory.Components;
|
||||
using Content.Server.Items;
|
||||
using Content.Server.PDA;
|
||||
using Content.Shared.Access;
|
||||
using Content.Shared.Containers.ItemSlots;
|
||||
using Content.Shared.Sandbox;
|
||||
using Robust.Server.Console;
|
||||
using Robust.Server.GameObjects;
|
||||
@@ -19,7 +20,6 @@ using Robust.Shared.Network;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
using static Content.Shared.Inventory.EquipmentSlotDefines;
|
||||
using Content.Server.Access.Systems;
|
||||
|
||||
namespace Content.Server.Sandbox
|
||||
{
|
||||
@@ -157,7 +157,7 @@ namespace Content.Server.Sandbox
|
||||
}
|
||||
}
|
||||
|
||||
void UpgradeId(IEntity id)
|
||||
void UpgradeId(EntityUidid)
|
||||
{
|
||||
var accessSystem = EntitySystem.Get<AccessSystem>();
|
||||
accessSystem.TrySetTags(id, allAccess);
|
||||
@@ -168,7 +168,7 @@ namespace Content.Server.Sandbox
|
||||
}
|
||||
}
|
||||
|
||||
IEntity CreateFreshId()
|
||||
EntityUidCreateFreshId()
|
||||
{
|
||||
var card = _entityManager.SpawnEntity("CaptainIDCard", IoCManager.Resolve<IEntityManager>().GetComponent<TransformComponent>(player.AttachedEntity).Coordinates);
|
||||
UpgradeId(card);
|
||||
|
||||
Reference in New Issue
Block a user