This commit is contained in:
Kara D 2021-10-11 15:23:45 -07:00
parent fc46ff305c
commit f3993be925
No known key found for this signature in database
GPG Key ID: 42F001DDA3E95C84
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,4 @@
using Content.Shared.ActionBlocker;
using Content.Shared.Alert;
using Content.Shared.Pulling.Components;
using Content.Shared.Pulling;
@ -16,6 +17,9 @@ namespace Content.Server.Alert.Click
{
public void AlertClicked(ClickAlertEventArgs args)
{
if (!EntitySystem.Get<ActionBlockerSystem>().CanInteract(args.Player))
return;
if (args.Player.TryGetComponent<SharedPullableComponent>(out var playerPullable))
{
EntitySystem.Get<SharedPullingSystem>().TryStopPull(playerPullable);