Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Fix ping in playerlist
Browse files Browse the repository at this point in the history
  • Loading branch information
loukylor committed Aug 13, 2021
1 parent fdb156b commit 87874e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PlayerList/Entries/PlayerEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public static void UpdateEntry(PlayerNet playerNet, PlayerEntry entry, bool bypa
// Update values but not text even if playerlist not active and before decode
entry.distance = (entry.player.transform.position - Player.prop_Player_0.transform.position).magnitude;
entry.fps = MelonUtils.Clamp((int)(1000f / playerNet.field_Private_Byte_0), -99, 999);
entry.ping = playerNet.prop_Int16_0;
entry.ping = playerNet.prop_VRCPlayer_0.prop_Int16_0;

if (!(MenuManager.playerList.active || bypassActive))
return;
Expand Down

0 comments on commit 87874e6

Please sign in to comment.