Skip to content

Commit

Permalink
set PlayerTransformSync.LocalInstance as early as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Nov 12, 2023
1 parent 8c76f4f commit 43821c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions QSB/Player/TransformSync/PlayerTransformSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public override void OnStartClient()
{
var player = new PlayerInfo(this);
QSBPlayerManager.PlayerList.SafeAdd(player);

if (isLocalPlayer)
{
LocalInstance = this;
}

base.OnStartClient();
QSBPatch.Remote = !isLocalPlayer;
QSBPlayerManager.OnAddPlayer?.SafeInvoke(Player);
Expand Down

0 comments on commit 43821c6

Please sign in to comment.