From 42d5f72e25810c6987849733c55c8eafda80d1a3 Mon Sep 17 00:00:00 2001 From: RedBigz Date: Thu, 26 Dec 2024 11:31:20 +1000 Subject: [PATCH] Fix PlayerNewSpawnPatch.cs to use player instead of trying to find by player index and getting a NRE --- TABGVR.Server/Patches/PlayerNewSpawnPatch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TABGVR.Server/Patches/PlayerNewSpawnPatch.cs b/TABGVR.Server/Patches/PlayerNewSpawnPatch.cs index e5a70a1..10270d2 100644 --- a/TABGVR.Server/Patches/PlayerNewSpawnPatch.cs +++ b/TABGVR.Server/Patches/PlayerNewSpawnPatch.cs @@ -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();