Completely fixed favorited servers. You may want to re-edit them.

This commit is contained in:
2016-10-09 01:29:46 +05:00
parent e12bcdd386
commit 64b87d3a8b
2 changed files with 7 additions and 6 deletions

View File

@@ -64,6 +64,7 @@ func (c *Cache) FlushServers(data map[string]string) {
new_servers[mapping_item_name].PlayersInfo = s.Server.PlayersInfo
new_servers[mapping_item_name].IsPrivate = s.Server.IsPrivate
new_servers[mapping_item_name].Favorite = s.Server.Favorite
new_servers[mapping_item_name].ProfileToUse = s.Server.ProfileToUse
} else {
cached_servers[mapping_item_name].Ip = s.Server.Ip
cached_servers[mapping_item_name].Port = s.Server.Port
@@ -78,6 +79,7 @@ func (c *Cache) FlushServers(data map[string]string) {
cached_servers[mapping_item_name].PlayersInfo = s.Server.PlayersInfo
cached_servers[mapping_item_name].IsPrivate = s.Server.IsPrivate
cached_servers[mapping_item_name].Favorite = s.Server.Favorite
cached_servers[mapping_item_name].ProfileToUse = s.Server.ProfileToUse
}
}