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