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

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