Skip to content

Commit

Permalink
fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
canvaswalker committed Dec 29, 2024
2 parents 74439e7 + 5e7a797 commit 82391ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Content.Server/SS220/ItemOfferVerb/Systems/ItemOfferSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Content.Shared.Input;
using Content.Shared.Silicons.Borgs.Components;
using Robust.Shared.Input.Binding;
using Content.Shared.Interaction.Components;

namespace Content.Server.SS220.ItemOfferVerb.Systems
{
Expand Down Expand Up @@ -143,6 +144,9 @@ private void DoItemOffer(EntityUid user, EntityUid target)
if (!_hands.TryGetActiveItem(user, out var item))
return;

if (HasComp<UnremoveableComponent>(item))
return;

var itemReceiver = EnsureComp<ItemReceiverComponent>(target);
itemReceiver.Giver = user;
itemReceiver.Item = item;
Expand Down

0 comments on commit 82391ba

Please sign in to comment.