RangedInteractEvent uses EntityUid exclusively

Did anyone else know this event was a thing?
This commit is contained in:
Vera Aguilera Puerto
2021-11-09 15:05:04 +01:00
parent 22724d06b4
commit 4f215c7b45
2 changed files with 8 additions and 23 deletions

View File

@@ -403,7 +403,7 @@ namespace Content.Server.Interaction
if (target != null)
{
var rangedMsg = new RangedInteractEvent(user, used, target, clickLocation);
var rangedMsg = new RangedInteractEvent(user.Uid, used.Uid, target.Uid, clickLocation);
RaiseLocalEvent(target.Uid, rangedMsg);
if (rangedMsg.Handled)
return true;