]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Handless mobs can no longer wipe devices (#30149)
authorScribbles0 <91828755+Scribbles0@users.noreply.github.com>
Tue, 23 Jul 2024 17:47:07 +0000 (10:47 -0700)
committerGitHub <noreply@github.com>
Tue, 23 Jul 2024 17:47:07 +0000 (10:47 -0700)
add check for hands

Content.Server/Ghost/Roles/ToggleableGhostRoleSystem.cs

index 8354a24f90d19d6a73acd23cf543be2b1d55424e..64e46bb608a0de56f1f5d52abd0da7c40f898f61 100644 (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)