Fix 3000 errors
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Content.Server.Mind.Components;
|
||||
using Content.Server.Stack;
|
||||
using Content.Shared.Stacks;
|
||||
using Content.Shared.Traitor.Uplink;
|
||||
using Robust.Shared.GameObjects;
|
||||
@@ -71,7 +69,7 @@ namespace Content.Server.Traitor.Uplink.Account
|
||||
|
||||
}
|
||||
|
||||
public bool TryPurchaseItem(UplinkAccount acc, string itemId, EntityCoordinates spawnCoords, [NotNullWhen(true)] out IEntity? purchasedItem)
|
||||
public bool TryPurchaseItem(UplinkAccount acc, string itemId, EntityCoordinates spawnCoords, [NotNullWhen(true)] out EntityUid purchasedItem)
|
||||
{
|
||||
purchasedItem = null;
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace Content.Server.Traitor.Uplink.Commands
|
||||
var user = session.AttachedEntity;
|
||||
|
||||
// Get target item
|
||||
IEntity? 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;
|
||||
}
|
||||
|
||||
uplinkEntity = entityManager.GetEntity(eUid);
|
||||
uplinkeUid
|
||||
}
|
||||
|
||||
// Get TC count
|
||||
|
||||
@@ -154,7 +154,7 @@ namespace Content.Server.Traitor.Uplink
|
||||
|
||||
// try to put it into players hands
|
||||
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(player, out SharedHandsComponent? hands))
|
||||
hands.TryPutInAnyHand(EntityManager.GetEntity(tcUid.Value));
|
||||
hands.TryPutInAnyHand(tcUid.Value)
|
||||
|
||||
// play buying sound
|
||||
SoundSystem.Play(Filter.SinglePlayer(args.Session), uplink.BuySuccessSound.GetSound(),
|
||||
@@ -189,7 +189,7 @@ namespace Content.Server.Traitor.Uplink
|
||||
ui.SetState(new UplinkUpdateState(accData, listings));
|
||||
}
|
||||
|
||||
public bool AddUplink(IEntity user, UplinkAccount account, IEntity? uplinkEntity = null)
|
||||
public bool AddUplink(EntityUid user, UplinkAccount account, EntityUid uplinkEntity = null)
|
||||
{
|
||||
// Try to find target item
|
||||
if (uplinkEntity == null)
|
||||
@@ -205,7 +205,7 @@ namespace Content.Server.Traitor.Uplink
|
||||
return true;
|
||||
}
|
||||
|
||||
private IEntity? FindUplinkTarget(IEntity user)
|
||||
private EntityUid FindUplinkTarget(EntityUiduser)
|
||||
{
|
||||
// Try to find PDA in inventory
|
||||
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(user, out InventoryComponent? inventory))
|
||||
|
||||
Reference in New Issue
Block a user