Skip to content

Commit

Permalink
Prevent entities who do not have hands from setting off bombs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nok-ko committed Dec 8, 2023
1 parent 8902591 commit 480b9ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Content.Server/Defusable/Systems/DefusableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public override void Initialize()
/// </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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private void OnExamined(EntityUid uid, OnUseTimerTriggerComponent component, Exa
/// </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)
Expand Down

0 comments on commit 480b9ee

Please sign in to comment.