Fix scram allowing you to bring someone along (#42393)

1 line bugfix
This commit is contained in:
ScarKy0
2026-01-13 17:56:05 +01:00
committed by GitHub
parent d723054860
commit a18fc33724

View File

@@ -25,7 +25,7 @@ public sealed class ScramOnTriggerSystem : XOnTriggerSystem<ScramOnTriggerCompon
// We need stop the user from being pulled so they don't just get "attached" with whoever is pulling them.
// This can for example happen when the user is cuffed and being pulled.
if (TryComp<PullableComponent>(target, out var pull) && _pulling.IsPulled(target, pull))
_pulling.TryStopPull(ent, pull);
_pulling.TryStopPull(target, pull);
// Check if the user is pulling anything, and drop it if so.
if (TryComp<PullerComponent>(target, out var puller) && TryComp<PullableComponent>(puller.Pulling, out var pullable))