Skip to content

Commit

Permalink
Update Content.Server/_White/Headcrab/HeadcrabSystem.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Spatison <[email protected]>
  • Loading branch information
PuroSlavKing and Spatison authored Dec 26, 2024
1 parent 5b904f9 commit 6287c35
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Content.Server/_White/Headcrab/HeadcrabSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ private void OnHeadcrabDoHit(EntityUid uid, HeadcrabComponent component, ThrowDo
return;

_inventory.TryGetSlotEntity(args.Target, "head", out var headItem);
if (HasComp<IngestionBlockerComponent>(headItem))
return;

if (!_inventory.TryEquip(args.Target, uid, "mask", true))
if (HasComp<IngestionBlockerComponent>(headItem)
|| !_inventory.TryEquip(args.Target, uid, "mask", true))
return;

component.EquippedOn = args.Target;
Expand Down

0 comments on commit 6287c35

Please sign in to comment.