mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-24 05:35:35 +03:00
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.
This commit is contained in:
parent
12e26e3f5d
commit
07f9f00cb4
@ -366,7 +366,7 @@ public bool Joinable
|
|||||||
{
|
{
|
||||||
if ( !IsValid ) { return false; }
|
if ( !IsValid ) { return false; }
|
||||||
string joinable = CurrentLobbyData.GetData( "joinable" );
|
string joinable = CurrentLobbyData.GetData( "joinable" );
|
||||||
switch ( joinable )
|
switch ( joinable.ToLowerInvariant() )
|
||||||
{
|
{
|
||||||
case "true":
|
case "true":
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user