mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 12:32:55 +00:00
UpdatePrevData on initial serialize instead of Awake
This commit is contained in:
parent
9e131f7ae8
commit
cdea31a310
@ -20,6 +20,7 @@ namespace QSB.Utility
|
|||||||
var changed = base.OnSerialize(writer, initialState);
|
var changed = base.OnSerialize(writer, initialState);
|
||||||
if (initialState && isServer)
|
if (initialState && isServer)
|
||||||
{
|
{
|
||||||
|
UpdatePrevData();
|
||||||
Serialize(writer, true);
|
Serialize(writer, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,8 +37,6 @@ namespace QSB.Utility
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void Awake() => UpdatePrevData();
|
|
||||||
|
|
||||||
protected virtual void Update()
|
protected virtual void Update()
|
||||||
{
|
{
|
||||||
if (!isClient)
|
if (!isClient)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user