@@ -18,11 +18,12 @@ using Content.Shared.Pulling.Components;
|
||||
using Content.Shared.Stacks;
|
||||
using Content.Shared.Storage;
|
||||
using Content.Shared.Throwing;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Input.Binding;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Players;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Server.Hands.Systems
|
||||
@@ -158,9 +159,9 @@ namespace Content.Server.Hands.Systems
|
||||
#endregion
|
||||
|
||||
#region interactions
|
||||
private bool HandleThrowItem(ICommonSession? playerSession, EntityCoordinates coordinates, EntityUid entity)
|
||||
private bool HandleThrowItem(ICommonSession? session, EntityCoordinates coordinates, EntityUid entity)
|
||||
{
|
||||
if (playerSession == null)
|
||||
if (session is not IPlayerSession playerSession)
|
||||
return false;
|
||||
|
||||
if (playerSession.AttachedEntity is not {Valid: true} player ||
|
||||
@@ -219,7 +220,7 @@ namespace Content.Server.Hands.Systems
|
||||
// TODO: move to storage or inventory
|
||||
private void HandleSmartEquip(ICommonSession? session, string equipmentSlot)
|
||||
{
|
||||
if (session is not { } playerSession)
|
||||
if (session is not IPlayerSession playerSession)
|
||||
return;
|
||||
|
||||
if (playerSession.AttachedEntity is not {Valid: true} plyEnt || !Exists(plyEnt))
|
||||
|
||||
Reference in New Issue
Block a user