From e2160bb97ac4850fff69c77b520014d616d71a1c Mon Sep 17 00:00:00 2001 From: doxoh Date: Tue, 9 Jan 2024 17:51:44 +0100 Subject: [PATCH] fix(client): parse sync info --- api/AltV.Net.Client/Elements/Data/SyncInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/AltV.Net.Client/Elements/Data/SyncInfo.cs b/api/AltV.Net.Client/Elements/Data/SyncInfo.cs index b1d87b462..775d78ad9 100644 --- a/api/AltV.Net.Client/Elements/Data/SyncInfo.cs +++ b/api/AltV.Net.Client/Elements/Data/SyncInfo.cs @@ -24,7 +24,7 @@ public uint[] GetPropertiesUpdateTick() return Array.Empty(); } - var value = ComponentPropertyIndex; + var value = PropertiesUpdateTick; var values = new uint[PropertyCount]; var buffer = new byte[4]; @@ -45,7 +45,7 @@ public uint[] GetComponentPropertyIndex() } var value = ComponentPropertyIndex; - var values = new uint[ComponentCount]; + var values = new uint[ComponentCount - 1]; var buffer = new byte[4]; for (var i = 0; i < values.Length; i++)