[Hotfix] Remove pull-escape trick (#40368)
* make HandleStopPull byref * we get signal
This commit is contained in:
@@ -3,8 +3,10 @@ namespace Content.Shared.Pulling.Events;
|
||||
/// <summary>
|
||||
/// Raised when a request is made to stop pulling an entity.
|
||||
/// </summary>
|
||||
|
||||
[ByRefEvent]
|
||||
public record struct AttemptStopPullingEvent(EntityUid? User = null)
|
||||
{
|
||||
public readonly EntityUid? User = User;
|
||||
public bool Cancelled;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -599,7 +599,7 @@ public sealed class PullingSystem : EntitySystem
|
||||
return true;
|
||||
|
||||
var msg = new AttemptStopPullingEvent(user);
|
||||
RaiseLocalEvent(pullableUid, msg, true);
|
||||
RaiseLocalEvent(pullableUid, ref msg, true);
|
||||
|
||||
if (msg.Cancelled)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user