Handless mobs can no longer wipe devices (#30149)

add check for hands
This commit is contained in:
Scribbles0
2024-07-23 10:47:07 -07:00
committed by GitHub
parent e7aa97645b
commit 7381df4335

View File

@@ -96,7 +96,7 @@ public sealed class ToggleableGhostRoleSystem : EntitySystem
private void AddWipeVerb(EntityUid uid, ToggleableGhostRoleComponent component, GetVerbsEvent<ActivationVerb> args)
{
if (!args.CanAccess || !args.CanInteract)
if (args.Hands == null || !args.CanAccess || !args.CanInteract)
return;
if (TryComp<MindContainerComponent>(uid, out var mind) && mind.HasMind)