diff options
Diffstat (limited to '')
| -rw-r--r-- | src/main/Difficulty.java | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/src/main/Difficulty.java b/src/main/Difficulty.java index 9812c04..e1d8d7e 100644 --- a/src/main/Difficulty.java +++ b/src/main/Difficulty.java @@ -65,8 +65,10 @@ public class Difficulty          JSONParser jsonParser = new JSONParser(); //parser to read the file -        filepath = file.getPath(); -		 +        filepath = file.getName(); +         +        System.out.println(file); +  		try(FileReader reader = new FileReader(file))  		{              Object obj = jsonParser.parse(reader);  @@ -93,6 +95,7 @@ public class Difficulty      public void addToLeaderboard(String name, int score)       {          leaderboard.add(new LeaderboardEntry(name, score, ""+LocalDate.now())); //do not delete this tho its not a placeholder +                  try (FileWriter fileWriter = new FileWriter(filepath))   		{              //write the settings JSONObject instance to the file  | 
