Added OpenStorage trigger on ActivateItemInWorld
When ActivateItemInWorld is pressed when hovering over a InventoryButton and the InventorySlot contains a storage item, it will open the StorageGUI.
This commit is contained in:
@@ -472,11 +472,18 @@ namespace Content.Server.GameObjects
|
||||
var playerEntity = session.AttachedEntity;
|
||||
var used = GetActiveHand?.Owner;
|
||||
|
||||
if (playerEntity == Owner && used != null && slot.ContainedEntity != null)
|
||||
{
|
||||
if (playerEntity == Owner && slot.ContainedEntity != null)
|
||||
{
|
||||
var interactionSystem = _entitySystemManager.GetEntitySystem<InteractionSystem>();
|
||||
interactionSystem.Interaction(Owner, used, slot.ContainedEntity,
|
||||
GridCoordinates.Nullspace);
|
||||
if (used != null)
|
||||
{
|
||||
interactionSystem.Interaction(Owner, used, slot.ContainedEntity,
|
||||
GridCoordinates.Nullspace);
|
||||
}
|
||||
else
|
||||
{
|
||||
interactionSystem.Interaction(Owner, slot.ContainedEntity);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user