mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
hopefully this all goes through well
This commit is contained in:
@@ -5,7 +5,7 @@ using System.Numerics;
|
||||
using Robust.Shared.Utility;
|
||||
using Content.Server.Shuttles.Events;
|
||||
using Content.Shared.IdentityManagement;
|
||||
|
||||
using Content.Server.Bible.Components; // #IMP
|
||||
namespace Content.Server.Pinpointer;
|
||||
|
||||
public sealed class PinpointerSystem : SharedPinpointerSystem
|
||||
@@ -51,7 +51,7 @@ public sealed class PinpointerSystem : SharedPinpointerSystem
|
||||
TogglePinpointer(uid, component);
|
||||
|
||||
if (!component.CanRetarget)
|
||||
LocateTarget(uid, component);
|
||||
LocateTarget(uid, component, args); //#IMP args
|
||||
|
||||
args.Handled = true;
|
||||
}
|
||||
@@ -73,7 +73,8 @@ public sealed class PinpointerSystem : SharedPinpointerSystem
|
||||
}
|
||||
}
|
||||
|
||||
private void LocateTarget(EntityUid uid, PinpointerComponent component)
|
||||
//#IMP ActivateInWorldEvent args: added this
|
||||
private void LocateTarget(EntityUid uid, PinpointerComponent component, ActivateInWorldEvent? args = null)
|
||||
{
|
||||
// try to find target from whitelist
|
||||
if (component.IsActive && component.Component != null)
|
||||
|
||||
Reference in New Issue
Block a user