From d740fddf3d10db07363523e854d7db99fda575b7 Mon Sep 17 00:00:00 2001 From: Zach Jordan Date: Wed, 31 May 2023 08:33:32 -0400 Subject: same thing as last commit --- src/main/Difficulty.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main/Difficulty.java b/src/main/Difficulty.java index ebe7a3f..8420886 100644 --- a/src/main/Difficulty.java +++ b/src/main/Difficulty.java @@ -19,7 +19,7 @@ public class Difficulty public String title; private ObservableList leaderboard = FXCollections.observableArrayList(); public File notes; - public int bpm = 28; + public int bpm; public File song; public int numBeats; private File leaderboardFile; @@ -35,8 +35,8 @@ public class Difficulty JSONObject diffStuff = (JSONObject)(obj); //converts read object to a JSONObject title = (String) diffStuff.get("title"); - bpm = Integer.parseInt(""+diffStuff.get("bpm")); - numBeats = Integer.parseInt(""+diffStuff.get("numBeats")); + bpm = (int)(diffStuff.get("bpm")); + numBeats = (int)(diffStuff.get("numBeats")); } catch (Exception e) @@ -99,7 +99,8 @@ public class Difficulty } } - public ObservableList getLeaderboard() { + public ObservableList getLeaderboard() + { return leaderboard; } } -- cgit v1.2.3