Fixing some warnings (#6250)

Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
This commit is contained in:
wrexbe
2022-01-21 01:38:35 -08:00
committed by GitHub
parent 29b22e2871
commit cea1b21832
191 changed files with 341 additions and 340 deletions

View File

@@ -83,7 +83,7 @@ namespace Content.Server.Strip
private async void PlaceActiveHandItemInInventory(EntityUid user, string slot)
{
var userHands = _entities.GetComponent<HandsComponent>(user);
var item = userHands.GetActiveHand;
var item = userHands.GetActiveHandItem;
var invSystem = EntitySystem.Get<InventorySystem>();
bool Check()
@@ -149,7 +149,7 @@ namespace Content.Server.Strip
{
var hands = _entities.GetComponent<HandsComponent>(Owner);
var userHands = _entities.GetComponent<HandsComponent>(user);
var item = userHands.GetActiveHand;
var item = userHands.GetActiveHandItem;
bool Check()
{
@@ -324,7 +324,7 @@ namespace Content.Server.Strip
!_entities.TryGetComponent(user, out HandsComponent? userHands))
return;
var placingItem = userHands.GetActiveHand != null;
var placingItem = userHands.GetActiveHandItem != null;
switch (obj.Message)
{