Fix Drop interaction not being raised (#858)
This commit is contained in:
committed by
GitHub
parent
2734abbe20
commit
bc82159878
@@ -192,11 +192,15 @@ namespace Content.Server.GameObjects
|
|||||||
|
|
||||||
var inventorySlot = hands[slot];
|
var inventorySlot = hands[slot];
|
||||||
var item = inventorySlot.ContainedEntity.GetComponent<ItemComponent>();
|
var item = inventorySlot.ContainedEntity.GetComponent<ItemComponent>();
|
||||||
|
|
||||||
if (!inventorySlot.Remove(inventorySlot.ContainedEntity))
|
if (!inventorySlot.Remove(inventorySlot.ContainedEntity))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!_entitySystemManager.GetEntitySystem<InteractionSystem>().TryDroppedInteraction(Owner, item.Owner))
|
||||||
|
return false;
|
||||||
|
|
||||||
item.RemovedFromSlot();
|
item.RemovedFromSlot();
|
||||||
|
|
||||||
// TODO: The item should be dropped to the container our owner is in, if any.
|
// TODO: The item should be dropped to the container our owner is in, if any.
|
||||||
|
|||||||
Reference in New Issue
Block a user