Fix bug where placing items in PlaceableSurfaces didn't cause a… (#544)
* Change variable name in some interactions I definitely didn't copy-paste some stuff back then, absolutely not. * Fix bug where dropping items in tables didn't cause the drop interaction
This commit is contained in:
committed by
Pieter-Jan Briers
parent
8f04ce894f
commit
83b2e59910
@@ -230,6 +230,10 @@ namespace Content.Server.GameObjects
|
||||
|
||||
var inventorySlot = hands[slot];
|
||||
var item = inventorySlot.ContainedEntity.GetComponent<ItemComponent>();
|
||||
|
||||
if (!_entitySystemManager.GetEntitySystem<InteractionSystem>().TryDroppedInteraction(Owner, item.Owner))
|
||||
return false;
|
||||
|
||||
if (!inventorySlot.Remove(inventorySlot.ContainedEntity))
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user