diff options
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/tracker')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerFileLoader.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerFileLoader.java b/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerFileLoader.java index 81e8ed1..1e7d64e 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerFileLoader.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerFileLoader.java @@ -1,6 +1,7 @@ package com.thatgravyboat.skyblockhud.tracker; import com.google.gson.*; +import com.thatgravyboat.skyblockhud.SkyblockHud; import com.thatgravyboat.skyblockhud.location.Locations; import java.io.*; import java.nio.charset.StandardCharsets; @@ -85,8 +86,8 @@ public class TrackerFileLoader { return stats; } - public static boolean loadTrackerStatsFile(File configDirectory) { - File configFile = new File(configDirectory, "sbh-trackers-stats.json"); + public static boolean loadTrackerStatsFile() { + File configFile = new File(SkyblockHud.configDirectory, "sbh-trackers-stats.json"); try { if (configFile.createNewFile()) { @@ -127,8 +128,8 @@ public class TrackerFileLoader { return false; } - public static void saveTrackerStatsFile(File configDirectory) { - File configFile = new File(configDirectory, "sbh-trackers-stats.json"); + public static void saveTrackerStatsFile() { + File configFile = new File(SkyblockHud.configDirectory, "sbh-trackers-stats.json"); try { configFile.createNewFile(); |