Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Possibly fixed VRCPlayerAPI.isValid check
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanLaser committed Mar 16, 2021
1 parent fffc95d commit e53d01f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CyanEmu/Scripts/CyanEmuPlayerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static void InitializePlayer(VRCPlayerApi player)

playerIDs[player] = id;
players[id] = player;
VRCPlayerApi.AllPlayers.Add(player);
player.AddToList();

if (masterID == -1)
{
Expand Down Expand Up @@ -83,8 +83,7 @@ public static void RemovePlayer(VRCPlayerApi player)
{
playerIDs.Remove(player);
players.Remove(player.playerId);

VRCPlayerApi.AllPlayers.Remove(player);
player.RemoveFromList();

if (masterID == player.playerId)
{
Expand Down

0 comments on commit e53d01f

Please sign in to comment.