From a645b476202bd5b44ab5c22253a70269409b5674 Mon Sep 17 00:00:00 2001 From: sowgro Date: Thu, 5 Sep 2024 22:27:14 -0400 Subject: Add gui scale and other fixes - add gui scaling and options in settings - song with endTime of 0 will now properly get time from song length - suppress unchecked warnings in levelapi --- src/main/java/net/sowgro/npehero/levelapi/Leaderboard.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/net/sowgro/npehero/levelapi/Leaderboard.java') diff --git a/src/main/java/net/sowgro/npehero/levelapi/Leaderboard.java b/src/main/java/net/sowgro/npehero/levelapi/Leaderboard.java index bb1f30c..82f9aed 100644 --- a/src/main/java/net/sowgro/npehero/levelapi/Leaderboard.java +++ b/src/main/java/net/sowgro/npehero/levelapi/Leaderboard.java @@ -42,6 +42,7 @@ public class Leaderboard { */ public void save() throws IOException { file.createNewFile(); + @SuppressWarnings("unchecked") List> data = json.fromJson(new FileReader(file), List.class); for (LeaderboardEntry cur : entries) { Map obj = new HashMap<>(); @@ -63,6 +64,7 @@ public class Leaderboard { if (!file.exists()) { return; } + @SuppressWarnings("unchecked") List> data = json.fromJson(new FileReader(file), List.class); if (data == null) { return; -- cgit v1.2.3