mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-08 09:41:07 +00:00
fix thruster variable syncer trying to get the local player before local player exists
This commit is contained in:
parent
4aa8c2bd82
commit
3cf3728e80
@ -1,9 +1,6 @@
|
||||
using Mirror;
|
||||
using QSB.Player;
|
||||
using QSB.Utility;
|
||||
using QSB.Player;
|
||||
using QSB.Player.TransformSync;
|
||||
using QSB.Utility.VariableSync;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.ModelShip;
|
||||
@ -26,7 +23,7 @@ public class ModelShipThrusterVariableSyncer : MonoBehaviour
|
||||
|
||||
public void Update()
|
||||
{
|
||||
if (QSBPlayerManager.LocalPlayer.FlyingModelShip)
|
||||
if (PlayerTransformSync.LocalInstance && QSBPlayerManager.LocalPlayer.FlyingModelShip)
|
||||
{
|
||||
GetFromShip();
|
||||
return;
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Mirror;
|
||||
using QSB.Player;
|
||||
using QSB.Player.TransformSync;
|
||||
using QSB.Utility.VariableSync;
|
||||
using QSB.WorldSync;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.ShipSync;
|
||||
@ -21,7 +21,7 @@ public class ShipThrusterVariableSyncer : NetworkBehaviour
|
||||
|
||||
public void Update()
|
||||
{
|
||||
if (QSBPlayerManager.LocalPlayer.FlyingShip)
|
||||
if (PlayerTransformSync.LocalInstance && QSBPlayerManager.LocalPlayer.FlyingShip)
|
||||
{
|
||||
GetFromShip();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user