diff options
| author | Zach Jordan <zxjordan5@gmail.com> | 2023-05-31 08:33:32 -0400 | 
|---|---|---|
| committer | Zach Jordan <zxjordan5@gmail.com> | 2023-05-31 08:33:32 -0400 | 
| commit | d740fddf3d10db07363523e854d7db99fda575b7 (patch) | |
| tree | bef9e4ae944cad8a706b54797881a61d83dbd57b | |
| parent | b0c655b4fc8c789bbb666cc78bfddc5468ceb6a0 (diff) | |
| download | NPEhero-d740fddf3d10db07363523e854d7db99fda575b7.tar.gz NPEhero-d740fddf3d10db07363523e854d7db99fda575b7.tar.bz2 NPEhero-d740fddf3d10db07363523e854d7db99fda575b7.zip  | |
same thing as last commit
Diffstat (limited to '')
| -rw-r--r-- | src/main/Difficulty.java | 9 | 
1 files changed, 5 insertions, 4 deletions
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<LeaderboardEntry> 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<LeaderboardEntry> getLeaderboard() { +    public ObservableList<LeaderboardEntry> getLeaderboard()  +    {          return leaderboard;      }  }  | 
