diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-06-02 01:36:34 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-06-02 01:36:34 -0400 |
commit | 571bab88c599571ee5bd9c6f5f8af2f3016fb19d (patch) | |
tree | c8e96fa99ce1dddaae68fb60c27ddcf990c87a0a /src/main | |
parent | 0b7f45fcb05814870733613dcff233451948c967 (diff) | |
download | NPEhero-571bab88c599571ee5bd9c6f5f8af2f3016fb19d.tar.gz NPEhero-571bab88c599571ee5bd9c6f5f8af2f3016fb19d.tar.bz2 NPEhero-571bab88c599571ee5bd9c6f5f8af2f3016fb19d.zip |
bpm is now a double
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/Difficulty.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/Difficulty.java b/src/main/Difficulty.java index c7a289a..0691675 100644 --- a/src/main/Difficulty.java +++ b/src/main/Difficulty.java @@ -17,7 +17,7 @@ public class Difficulty public String title = "Unnamed"; private ObservableList<LeaderboardEntry> leaderboard = FXCollections.observableArrayList(); public File notes; - public int bpm; + public Double bpm; public int numBeats; public Level level; @@ -67,7 +67,7 @@ public class Difficulty JSONObject diffStuff = (JSONObject)(obj); //converts read object to a JSONObject title = (String) diffStuff.get("title"); - bpm = Integer.parseInt(diffStuff.get("bpm")+""); + bpm = Double.parseDouble(diffStuff.get("bpm")+""); numBeats = Integer.parseInt(diffStuff.get("numBeats")+""); } catch (Exception e) |