UpdatePrevData on initial serialize instead of Awake

This commit is contained in:
JohnCorby 2022-01-14 20:38:03 -08:00
parent 9e131f7ae8
commit cdea31a310

View File

@ -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)