Fix 3000 errors

This commit is contained in:
DrSmugleaf
2021-12-05 18:09:01 +01:00
parent 2bfec7ec62
commit 2a3b7d809d
569 changed files with 2979 additions and 3280 deletions

View File

@@ -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;

View File

@@ -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);