From 6287c35efe0318462adf0b6f7135f31529b7d9c1 Mon Sep 17 00:00:00 2001 From: PuroSlavKing <103608145+PuroSlavKing@users.noreply.github.com> Date: Thu, 26 Dec 2024 13:25:40 +0300 Subject: [PATCH] Update Content.Server/_White/Headcrab/HeadcrabSystem.cs Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> --- Content.Server/_White/Headcrab/HeadcrabSystem.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Content.Server/_White/Headcrab/HeadcrabSystem.cs b/Content.Server/_White/Headcrab/HeadcrabSystem.cs index fcf25adcf9..16bbc070cc 100644 --- a/Content.Server/_White/Headcrab/HeadcrabSystem.cs +++ b/Content.Server/_White/Headcrab/HeadcrabSystem.cs @@ -71,10 +71,8 @@ private void OnHeadcrabDoHit(EntityUid uid, HeadcrabComponent component, ThrowDo return; _inventory.TryGetSlotEntity(args.Target, "head", out var headItem); - if (HasComp(headItem)) - return; - - if (!_inventory.TryEquip(args.Target, uid, "mask", true)) + if (HasComp(headItem) + || !_inventory.TryEquip(args.Target, uid, "mask", true)) return; component.EquippedOn = args.Target;