PlayerTransformSync: send ready message before requesting state resync

This commit is contained in:
JohnCorby 2022-01-21 23:07:15 -08:00
parent c4cd2f3286
commit 5270b9dff9

View File

@ -64,17 +64,6 @@ namespace QSB.Player.TransformSync
DebugLog.DebugWrite($"Remove Player : id<{Player.PlayerId}>", MessageType.Info);
}
protected override void Init()
{
base.Init();
if (isLocalPlayer)
{
Player.IsReady = true;
new PlayerReadyMessage(true).Send();
}
}
protected override void Uninit()
{
base.Uninit();
@ -112,6 +101,9 @@ namespace QSB.Player.TransformSync
_visibleStickPivot = pivot;
_visibleStickTip = pivot.Find("Stick_Tip");
Player.IsReady = true;
new PlayerReadyMessage(true).Send();
new RequestStateResyncMessage().Send();
return player;