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
@@ -685,9 +685,9 @@ namespace Content.Server.GameObjects.EntitySystems
|
||||
/// </summary>
|
||||
public void HandSelectedInteraction(IEntity user, IEntity item)
|
||||
{
|
||||
var dropMsg = new HandSelectedMessage(user, item);
|
||||
RaiseEvent(dropMsg);
|
||||
if (dropMsg.Handled)
|
||||
var handSelectedMsg = new HandSelectedMessage(user, item);
|
||||
RaiseEvent(handSelectedMsg);
|
||||
if (handSelectedMsg.Handled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -707,9 +707,9 @@ namespace Content.Server.GameObjects.EntitySystems
|
||||
/// </summary>
|
||||
public void HandDeselectedInteraction(IEntity user, IEntity item)
|
||||
{
|
||||
var dropMsg = new HandDeselectedMessage(user, item);
|
||||
RaiseEvent(dropMsg);
|
||||
if (dropMsg.Handled)
|
||||
var handDeselectedMsg = new HandDeselectedMessage(user, item);
|
||||
RaiseEvent(handDeselectedMsg);
|
||||
if (handDeselectedMsg.Handled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user