mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +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);
|
||||
if (initialState && isServer)
|
||||
{
|
||||
UpdatePrevData();
|
||||
Serialize(writer, true);
|
||||
}
|
||||
|
||||
@ -36,8 +37,6 @@ namespace QSB.Utility
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void Awake() => UpdatePrevData();
|
||||
|
||||
protected virtual void Update()
|
||||
{
|
||||
if (!isClient)
|
||||
|
Loading…
x
Reference in New Issue
Block a user