fix client bug

This commit is contained in:
runette committed 2024-05-13 16:32:48 +01:00
1 parent 5c082f8b3f
commit ceffb3a1ca
1 file changed
+7 -1
+7 -1
View File
@@ -22,7 +22,13 @@ namespace Virgis {
public override void OnNetworkSpawn() {
base.OnNetworkSpawn();
data.OnValueChanged += SetData;
data.Value = tmpdata;
if (IsServer)
{
data.Value = tmpdata;
} else
{
SetData(data.Value, data.Value);
}
}
public override void OnNetworkDespawn()