fix (#379)
This commit is contained in:
@@ -3,6 +3,8 @@ using Content.Shared.Actions;
|
|||||||
using Content.Server.Chat.Systems;
|
using Content.Server.Chat.Systems;
|
||||||
using Robust.Shared.Utility;
|
using Robust.Shared.Utility;
|
||||||
using Content.Shared.Chat;
|
using Content.Shared.Chat;
|
||||||
|
using Content.Shared.Humanoid;
|
||||||
|
using Content.Shared.Inventory;
|
||||||
using Content.Shared.White.Other;
|
using Content.Shared.White.Other;
|
||||||
using Robust.Shared.Audio.Systems;
|
using Robust.Shared.Audio.Systems;
|
||||||
using Robust.Shared.Prototypes;
|
using Robust.Shared.Prototypes;
|
||||||
@@ -26,7 +28,10 @@ namespace Content.Server.White.Halt
|
|||||||
|
|
||||||
private void OnGetEquipped(EntityUid uid, HaltComponent component, GetItemActionsEvent args)
|
private void OnGetEquipped(EntityUid uid, HaltComponent component, GetItemActionsEvent args)
|
||||||
{
|
{
|
||||||
if (args.InHands)
|
if (args.SlotFlags != SlotFlags.MASK)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (!HasComp<HumanoidAppearanceComponent>(args.User))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
args.AddAction(ref component.ActionEntity, "Halt");
|
args.AddAction(ref component.ActionEntity, "Halt");
|
||||||
|
|||||||
Reference in New Issue
Block a user