Skip to content

Commit

Permalink
Fix PlayerNewSpawnPatch.cs to use player instead of trying to find by…
Browse files Browse the repository at this point in the history
… player index and getting a NRE
  • Loading branch information
RedBigz committed Dec 26, 2024
1 parent 43e948a commit 42d5f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TABGVR.Server/Patches/PlayerNewSpawnPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void Postfix(ServerClient world, TABGPlayerServer player)
{
world.WaitThenDoAction(3, () =>
{
var store = new PlayerStore(world.GameRoomReference.FindPlayer(player.PlayerIndex)); // Create PlayerStore
var store = new PlayerStore(player); // Create PlayerStore

store.Identification = new(store, world);
store.Identification.Interrogate();
Expand Down

0 comments on commit 42d5f72

Please sign in to comment.