mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
PlayerTransformSync: send ready message before requesting state resync
This commit is contained in:
parent
c4cd2f3286
commit
5270b9dff9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user