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/Difficulty.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/net/sowgro/npehero/levelapi/Difficulty.java') diff --git a/src/main/java/net/sowgro/npehero/levelapi/Difficulty.java b/src/main/java/net/sowgro/npehero/levelapi/Difficulty.java index c21ecf1..27f025a 100755 --- a/src/main/java/net/sowgro/npehero/levelapi/Difficulty.java +++ b/src/main/java/net/sowgro/npehero/levelapi/Difficulty.java @@ -50,6 +50,7 @@ public class Difficulty implements Comparable if (!jsonFile.exists()) { return; } + @SuppressWarnings("unchecked") Map data = jsonParser.fromJson(new FileReader(jsonFile), Map.class); if (data == null) { data = new HashMap<>(); @@ -85,6 +86,7 @@ public class Difficulty implements Comparable if (!jsonFile.exists() && !jsonFile.createNewFile()) { throw new IOException("Could not create file " + jsonFile.getAbsolutePath()); } + @SuppressWarnings("unchecked") Map data = jsonParser.fromJson(new FileReader(jsonFile), Map.class); // start with previous values if (data == null) { data = new HashMap<>(); -- cgit v1.2.3