CSGSI
CSGSI copied to clipboard
gs.Map.HasData always returns true
When using gs.Map.HasData
to detect whether the user is in game or on the main menu, I noticed that it seems to always return true regardless of condition. I did find a workaround which is to use gs.Map.JSON.Equals("{}")
which will return true if when the player is on the main menu.
Just use something like if (gs.Map.Phase != CSGSI.Nodes.MapPhase.Live)
to check if the player is in a match or not.