Moves spike to ECS (#5706)
This commit is contained in:
@@ -112,6 +112,10 @@ namespace Content.Server.Interaction
|
||||
|
||||
// trigger dragdrops on the dropped entity
|
||||
RaiseLocalEvent(msg.Dropped, interactionArgs);
|
||||
|
||||
if (interactionArgs.Handled)
|
||||
return;
|
||||
|
||||
foreach (var dragDrop in AllComps<IDraggable>(msg.Dropped))
|
||||
{
|
||||
if (dragDrop.CanDrop(interactionArgs) &&
|
||||
@@ -123,6 +127,10 @@ namespace Content.Server.Interaction
|
||||
|
||||
// trigger dragdropons on the targeted entity
|
||||
RaiseLocalEvent(msg.Target, interactionArgs, false);
|
||||
|
||||
if (interactionArgs.Handled)
|
||||
return;
|
||||
|
||||
foreach (var dragDropOn in AllComps<IDragDropOn>(msg.Target))
|
||||
{
|
||||
if (dragDropOn.CanDragDropOn(interactionArgs) &&
|
||||
|
||||
Reference in New Issue
Block a user