fix mice and revs being able to toggle suit pieces (#31152)

This commit is contained in:
slarticodefast
2024-08-19 04:41:27 +02:00
committed by GitHub
parent c9854c32ba
commit 3dcfe0d850

View 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));