Virtual items cleanup (#23912)
* Virtual items cleanup * Detail * Review --------- Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -5,6 +5,7 @@ using Content.Shared.Administration;
|
||||
using Content.Shared.Administration.Logs;
|
||||
using Content.Shared.Database;
|
||||
using Content.Shared.Hands.Components;
|
||||
using Content.Shared.Inventory.VirtualItem;
|
||||
using Content.Shared.Verbs;
|
||||
|
||||
namespace Content.Server.Verbs
|
||||
@@ -96,7 +97,7 @@ namespace Content.Server.Verbs
|
||||
}
|
||||
|
||||
// if this is a virtual pull, get the held entity
|
||||
if (holding != null && TryComp(holding, out HandVirtualItemComponent? pull))
|
||||
if (holding != null && TryComp(holding, out VirtualItemComponent? pull))
|
||||
holding = pull.BlockingEntity;
|
||||
|
||||
var verbText = $"{verb.Category?.Text} {verb.Text}".Trim();
|
||||
|
||||
Reference in New Issue
Block a user