Fix player PlayerInfoUpdate

This commit is contained in:
Sardelka
2022-07-30 12:03:57 +08:00
parent 3015ffe3ba
commit 911d8d5d64

View File

@ -77,7 +77,10 @@ namespace RageCoop.Client
{
if (packet.PedID == Main.LocalPlayerID) {Main.Logger.Debug("Latency updated"); Networking.Latency=packet.Latency; }
var p = GetPlayer(packet.PedID);
p.Latency= packet.Latency;
if (p!=null)
{
p.Latency= packet.Latency;
}
}
public static PlayerData GetPlayer(int id)
{