From 12e069fb76d0b388df05544a9a32014cae6fcfba Mon Sep 17 00:00:00 2001 From: nnaaa Date: Sat, 8 May 2021 21:39:21 -0400 Subject: [PATCH] Fixed an issue where player counts were off for people running VRChat with --enable-sdk-log-levels --- XSOverlay VRChat Parser/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XSOverlay VRChat Parser/Program.cs b/XSOverlay VRChat Parser/Program.cs index cd949cd..3ef3adb 100644 --- a/XSOverlay VRChat Parser/Program.cs +++ b/XSOverlay VRChat Parser/Program.cs @@ -335,7 +335,7 @@ static void RewindLogForMetadata(string filePath, long fromByte) string thisLine = asCharSpan.Slice(currentIdx, lastIdx - currentIdx).ToString(); - if (thisLine.Contains("[Behaviour] OnPlayerJoined")) + if (thisLine.Contains("[Behaviour] OnPlayerJoined ")) ++numPlayers; else if (thisLine.Contains("[Behaviour] OnPlayerLeft ")) --numPlayers;