Teleporting while pulling crash fix (#31787)

teleporting while pulling crash fix

Co-authored-by: YourUsername <you@example.com>
This commit is contained in:
godisdeadLOL
2024-09-04 19:44:10 +03:00
committed by GitHub
parent 6926a50d6d
commit ac753f14ce

View File

@@ -101,7 +101,7 @@ public abstract class SharedPortalSystem : EntitySystem
if (TryComp<PullerComponent>(subject, out var pullerComp)
&& TryComp<PullableComponent>(pullerComp.Pulling, out var subjectPulling))
{
_pulling.TryStopPull(subject, subjectPulling);
_pulling.TryStopPull(pullerComp.Pulling.Value, subjectPulling);
}
// if they came from another portal, just return and wait for them to exit the portal