mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Prevent entities who do not have hands from setting off bombs. (#22250)
This commit is contained in:
parent
174a73808f
commit
e5fb3552a7
2 changed files with 2 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ public sealed class DefusableSystem : SharedDefusableSystem
|
|||
/// </summary>
|
||||
private void OnGetAltVerbs(EntityUid uid, DefusableComponent comp, GetVerbsEvent<AlternativeVerb> args)
|
||||
{
|
||||
if (!args.CanInteract || !args.CanAccess)
|
||||
if (!args.CanInteract || !args.CanAccess || args.Hands == null)
|
||||
return;
|
||||
|
||||
args.Verbs.Add(new AlternativeVerb
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public sealed partial class TriggerSystem
|
|||
/// </summary>
|
||||
private void OnGetAltVerbs(EntityUid uid, OnUseTimerTriggerComponent component, GetVerbsEvent<AlternativeVerb> args)
|
||||
{
|
||||
if (!args.CanInteract || !args.CanAccess)
|
||||
if (!args.CanInteract || !args.CanAccess || args.Hands == null)
|
||||
return;
|
||||
|
||||
if (component.UseVerbInstead)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue