From bf56c97637e14df058ac52f270af530b85574be0 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Thu, 15 Dec 2022 13:40:03 +0900 Subject: - timeouts Signed-off-by: syeyoung --- .../main/java/kr/syeyoung/dungeonsguide/mod/utils/SkyblockUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/src/main/java') diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/utils/SkyblockUtils.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/utils/SkyblockUtils.java index ef6050e3..2a10ba7e 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/utils/SkyblockUtils.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/utils/SkyblockUtils.java @@ -31,7 +31,7 @@ public class SkyblockUtils { URL url = new URL("https://hypixel-api.inventivetalent.org/api/skyblock/calendar"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); - connection.setRequestProperty("User-Agent", "DungeonsGuide/1.0"); + connection.setRequestProperty("User-Agent", "DungeonsGuide/4.0"); InputStreamReader inputStreamReader = new InputStreamReader(connection.getInputStream()); JsonObject object = (JsonObject) new JsonParser().parse(inputStreamReader); if (!object.get("success").getAsBoolean()) { -- cgit