Fix more errors

This commit is contained in:
DrSmugleaf
2021-12-06 00:52:58 +01:00
parent 2b1fecbe02
commit 215cae5655
55 changed files with 262 additions and 297 deletions

View File

@@ -43,7 +43,7 @@ namespace Content.Server.Traitor.Uplink.Commands
var user = session.AttachedEntity;
// Get target item
EntityUid uplinkEntity = null;
EntityUid? uplinkEntity = null;
var entityManager = IoCManager.Resolve<IEntityManager>();
if (args.Length >= 2)
{
@@ -60,7 +60,7 @@ namespace Content.Server.Traitor.Uplink.Commands
return;
}
uplinkeUid
uplinkEntity = eUid;
}
// Get TC count
@@ -74,7 +74,7 @@ namespace Content.Server.Traitor.Uplink.Commands
// Finally add uplink
if (!entityManager.EntitySysManager.GetEntitySystem<UplinkSystem>()
.AddUplink(user, uplinkAccount!, uplinkEntity))
.AddUplink(user.Value, uplinkAccount, uplinkEntity))
{
shell.WriteLine(Loc.GetString("Failed to add uplink to the player"));
return;