Unneeded
This commit is contained in:
@@ -158,27 +158,8 @@ public class IconMarketplaceDownloadIcon : MonoBehaviour
|
||||
ShowStatus("Failed to make HTTP request");
|
||||
return;
|
||||
}
|
||||
string response = request.downloadHandler.text;
|
||||
if (response == "-999")
|
||||
{
|
||||
ShowStatus("Server error while fetching data");
|
||||
}
|
||||
else if (response == "-998")
|
||||
{
|
||||
ShowStatus("Client version too outdated to access servers");
|
||||
}
|
||||
else if (response == "-997")
|
||||
{
|
||||
ShowStatus("Encryption/decryption issues");
|
||||
}
|
||||
else if (response == "-996")
|
||||
{
|
||||
ShowStatus("Can't send requests on self-built instance");
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowStatus(null);
|
||||
var jsonResponse = JObject.Parse(response);
|
||||
var jsonResponse = JObject.Parse(request.downloadHandler.text);
|
||||
var icons = JsonConvert.DeserializeObject<MarketplaceIconType[]>(jsonResponse["data"].ToString());
|
||||
var localUserID = BazookaManager.Instance.GetAccountID();
|
||||
foreach (var entry in icons)
|
||||
@@ -235,7 +216,6 @@ public class IconMarketplaceDownloadIcon : MonoBehaviour
|
||||
newIcon.SetActive(true);
|
||||
Tools.RefreshHierarchy(newIcon);
|
||||
}
|
||||
}
|
||||
refreshButton.interactable = true;
|
||||
optionsButton.interactable = true;
|
||||
backButton.interactable = true;
|
||||
|
||||
Reference in New Issue
Block a user