Skip to content

Commit

Permalink
Revert "💀💀💀"
Browse files Browse the repository at this point in the history
This reverts commit 904865e.
  • Loading branch information
IRacle1 committed Aug 16, 2024
1 parent bcb78e7 commit 7befb7a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions EXILED/Exiled.API/Features/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1277,8 +1277,13 @@ public static Player Get(GameObject gameObject)
if (Dictionary.TryGetValue(gameObject, out Player player))
return player;

UnverifiedPlayers.TryGetValue(gameObject, out player);
return player;
if (UnverifiedPlayers.TryGetValue(gameObject, out player))
return player;

if (ReferenceHub.TryGetHub(gameObject, out ReferenceHub hub))
return new(hub);

return null;
}

/// <summary>
Expand Down

0 comments on commit 7befb7a

Please sign in to comment.