From f6490be472fb17b13697c2b25127cf6b74193136 Mon Sep 17 00:00:00 2001 From: CoocooFroggy <45371102+CoocooFroggy@users.noreply.github.com> Date: Wed, 23 Mar 2022 21:41:03 -0400 Subject: [PATCH] =?UTF-8?q?FutureRestore=20GUI=20=E2=80=94=20v1.97.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/MainMenu.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/MainMenu.java b/src/main/java/MainMenu.java index d6c6004..9c10170 100644 --- a/src/main/java/MainMenu.java +++ b/src/main/java/MainMenu.java @@ -1220,8 +1220,7 @@ static void alertIfNewerFRGUIAvailable(MainMenu mainMenuInstance, String current String content = getRequestUrl("https://api.github.com/repos/CoocooFroggy/FutureRestore-GUI/releases/latest"); Gson gson = new Gson(); - ArrayList> result = gson.fromJson(content, ArrayList.class); - Map newestRelease = result.get(0); + Map newestRelease = gson.fromJson(content, Map.class); String newestTag = (String) newestRelease.get("tag_name"); System.out.println("Newest FRGUI version: " + newestTag);