From cdea31a310b76b9bd26dda29f4264e98f94bea19 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Fri, 14 Jan 2022 20:38:03 -0800 Subject: [PATCH] UpdatePrevData on initial serialize instead of Awake --- QSB/Utility/QSBNetworkBehaviour.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/QSB/Utility/QSBNetworkBehaviour.cs b/QSB/Utility/QSBNetworkBehaviour.cs index 36a4233b..8b0a230f 100644 --- a/QSB/Utility/QSBNetworkBehaviour.cs +++ b/QSB/Utility/QSBNetworkBehaviour.cs @@ -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)