Fix two interaction prediction issues (#7356)

This commit is contained in:
Leon Friedrich
2022-03-31 20:08:30 +13:00
committed by GitHub
parent dab0020d35
commit 4ad36f10e7
7 changed files with 45 additions and 47 deletions

View File

@@ -627,7 +627,6 @@ namespace Content.Shared.Interaction
EntityUid used,
EntityUid target,
EntityCoordinates clickLocation,
bool predicted = false,
bool checkCanInteract = true,
bool checkCanUse = true)
{
@@ -641,7 +640,7 @@ namespace Content.Shared.Interaction
return;
// all interactions should only happen when in range / unobstructed, so no range check is needed
var interactUsingEvent = new InteractUsingEvent(user, used, target, clickLocation, predicted);
var interactUsingEvent = new InteractUsingEvent(user, used, target, clickLocation);
RaiseLocalEvent(target, interactUsingEvent);
if (interactUsingEvent.Handled)
return;