mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-22 21:40:39 +00:00
SyncBase: only base.Update after GetFromAttached
This commit is contained in:
parent
9e5e7bb6a1
commit
b3ed3ec7d9
@ -219,7 +219,6 @@ namespace QSB.Syncs
|
||||
if (_pauseTimer > 0)
|
||||
{
|
||||
_pauseTimer = Mathf.Max(0, _pauseTimer - Time.unscaledDeltaTime);
|
||||
base.Update();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -230,14 +229,12 @@ namespace QSB.Syncs
|
||||
else if (IsInitialized && !CheckReady())
|
||||
{
|
||||
SafeUninit();
|
||||
base.Update();
|
||||
return;
|
||||
}
|
||||
|
||||
IsValid = CheckValid();
|
||||
if (!IsValid)
|
||||
{
|
||||
base.Update();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -255,14 +252,13 @@ namespace QSB.Syncs
|
||||
if (hasAuthority)
|
||||
{
|
||||
GetFromAttached();
|
||||
base.Update();
|
||||
}
|
||||
else if (!OnlyApplyOnDeserialize || _shouldApply)
|
||||
{
|
||||
_shouldApply = false;
|
||||
ApplyToAttached();
|
||||
}
|
||||
|
||||
base.Update();
|
||||
}
|
||||
|
||||
private Vector3 SmartSmoothDamp(Vector3 currentPosition, Vector3 targetPosition)
|
||||
|
Loading…
x
Reference in New Issue
Block a user