diff --git a/QSB/Player/JoinLeaveSingularity.cs b/QSB/Player/JoinLeaveSingularity.cs index 0ad811b5..92dac01b 100644 --- a/QSB/Player/JoinLeaveSingularity.cs +++ b/QSB/Player/JoinLeaveSingularity.cs @@ -19,7 +19,7 @@ public static class JoinLeaveSingularity if (joining) { if (PlayerTransformSync.LocalInstance == null || - player.PlayerId < QSBPlayerManager.LocalPlayerId) + player.PlayerId < QSBPlayerManager.LocalPlayerId) { // player was here before we joined return; @@ -34,11 +34,7 @@ public static class JoinLeaveSingularity } var go = new GameObject($"player {player} JoinLeaveSingularity"); - var ct = CancellationTokenSource.CreateLinkedTokenSource( - go.GetCancellationTokenOnDestroy(), - player.TransformSync.GetCancellationTokenOnDestroy(), - player.Body.GetCancellationTokenOnDestroy() - ).Token; + var ct = go.GetCancellationTokenOnDestroy(); UniTask.Create(async () => { DebugLog.DebugWrite($"{go.name}: WARP TASK"); @@ -146,4 +142,4 @@ public static class JoinLeaveSingularity }; await UniTask.WaitUntil(() => !effect.enabled && !singularity._owOneShotSource.isPlaying, cancellationToken: ct); } -} +} \ No newline at end of file