Fix player blip (again)

This commit is contained in:
sardelka9515
2022-08-20 22:15:01 +08:00
parent 2ef3012672
commit 6c355b109d
3 changed files with 6 additions and 6 deletions

View File

@ -79,7 +79,7 @@ namespace RageCoop.Client
public static void UpdatePlayer(Packets.PlayerInfoUpdate packet) public static void UpdatePlayer(Packets.PlayerInfoUpdate packet)
{ {
var p = GetPlayer(packet.PedID); var p = GetPlayer(packet.PedID);
if (p!=null) if (p!=null && p.PedID!=Main.LocalPlayerID)
{ {
p._latencyToServer = packet.Latency; p._latencyToServer = packet.Latency;
p.Position = packet.Position; p.Position = packet.Position;
@ -90,7 +90,7 @@ namespace RageCoop.Client
{ {
p.FakeBlip=World.CreateBlip(p.Position); p.FakeBlip=World.CreateBlip(p.Position);
} }
if (p.Character?.MainPed != null && p.Character.MainPed.Exists()) if (EntityPool.PedExists(p.PedID))
{ {
p.FakeBlip.DisplayType = BlipDisplayType.NoDisplay; p.FakeBlip.DisplayType = BlipDisplayType.NoDisplay;
} }

View File

@ -16,7 +16,7 @@ using System.Resources;
// Version informationr( // Version informationr(
[assembly: AssemblyVersion("1.5.1.22")] [assembly: AssemblyVersion("1.5.1.27")]
[assembly: AssemblyFileVersion("1.5.1.22")] [assembly: AssemblyFileVersion("1.5.1.27")]
[assembly: NeutralResourcesLanguageAttribute( "en-US" )] [assembly: NeutralResourcesLanguageAttribute( "en-US" )]

View File

@ -15,7 +15,7 @@ using System.Resources;
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
// Version informationr( // Version informationr(
[assembly: AssemblyVersion("1.5.1.21")] [assembly: AssemblyVersion("1.5.1.26")]
[assembly: AssemblyFileVersion("1.5.1.21")] [assembly: AssemblyFileVersion("1.5.1.26")]
[assembly: NeutralResourcesLanguageAttribute( "en-US" )] [assembly: NeutralResourcesLanguageAttribute( "en-US" )]