From 07f9f00cb40bfca8f17774a6219318e392701e42 Mon Sep 17 00:00:00 2001 From: Sean L Date: Fri, 11 Jan 2019 14:19:34 +0100 Subject: [PATCH] Fixed Lobby.Joinable GetData("joinable") returns "True" or "False", (note upercase), so the Joinable would always return false. Fixed by setting to LowerInvariant, since I'm not sure if it returns it uppercase on other platforms as well, or if this ever gets changed. --- Facepunch.Steamworks/Client/Lobby.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/Client/Lobby.cs b/Facepunch.Steamworks/Client/Lobby.cs index fb2c163..f34b83a 100644 --- a/Facepunch.Steamworks/Client/Lobby.cs +++ b/Facepunch.Steamworks/Client/Lobby.cs @@ -366,7 +366,7 @@ public bool Joinable { if ( !IsValid ) { return false; } string joinable = CurrentLobbyData.GetData( "joinable" ); - switch ( joinable ) + switch ( joinable.ToLowerInvariant() ) { case "true": return true;