Prevent entities who do not have hands from setting off bombs. (#22250)
This commit is contained in:
parent
c8f084beb6
commit
5ddae5059c
|
|
@ -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…
Reference in New Issue