Remove IDropped (#7075)
This commit is contained in:
@@ -8,6 +8,7 @@ using Content.Server.UserInterface;
|
||||
using Content.Shared.ActionBlocker;
|
||||
using Content.Shared.DragDrop;
|
||||
using Content.Shared.Hands.Components;
|
||||
using Content.Shared.Interaction.Events;
|
||||
using Content.Shared.Inventory;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Strip.Components;
|
||||
@@ -247,6 +248,8 @@ namespace Content.Server.Strip
|
||||
|
||||
if (invSystem.TryGetSlotEntity(Owner, slot, out var item) && invSystem.TryUnequip(user, Owner, slot))
|
||||
{
|
||||
// Raise a dropped event, so that things like gas tank internals properly deactivate when stripping
|
||||
_entities.EventBus.RaiseLocalEvent(item.Value, new DroppedEvent(user));
|
||||
userHands.PutInHandOrDrop(item.Value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user