]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix mice and revs being able to toggle suit pieces (#31152)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Mon, 19 Aug 2024 02:41:27 +0000 (04:41 +0200)
committerGitHub <noreply@github.com>
Mon, 19 Aug 2024 02:41:27 +0000 (20:41 -0600)
Content.Shared/Clothing/EntitySystems/ToggleableClothingSystem.cs

index aa3381c6bf936c8fab3e61af6f1bd9087317a586..c63dfb59017700d56ac7341367d45765e27a9676 100644 (file)
@@ -57,7 +57,7 @@ public sealed class ToggleableClothingSystem : EntitySystem
 
     private void OnGetVerbs(EntityUid uid, ToggleableClothingComponent component, GetVerbsEvent<EquipmentVerb> args)
     {
-        if (!args.CanAccess || !args.CanInteract || component.ClothingUid == null || component.Container == null)
+        if (!args.CanAccess || !args.CanInteract || args.Hands == null || component.ClothingUid == null || component.Container == null)
             return;
 
         var text = component.VerbText ?? (component.ActionEntity == null ? null : Name(component.ActionEntity.Value));