Skip to content

Commit 99cbe78

Browse files
fix[version_list]: Move file to cache (#19)
2 parents 66db228 + e2db0d3 commit 99cbe78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/tasks/AsyncVersionList.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class AsyncVersionList {
2626

2727
public void getVersionList(@Nullable VersionDoneListener listener, boolean secondPass){
2828
sExecutorService.execute(() -> {
29-
File versionFile = new File(Tools.DIR_DATA + "/version_list.json");
29+
File versionFile = new File(Tools.DIR_CACHE + "/version_list.json");
3030
JMinecraftVersionList versionList = null;
3131
try{
3232
if(!versionFile.exists() || (System.currentTimeMillis() > versionFile.lastModified() + 86400000 )){
@@ -68,7 +68,7 @@ private JMinecraftVersionList downloadVersionList(String mirror){
6868

6969
// Then save the version list
7070
//TODO make it not save at times ?
71-
FileOutputStream fos = new FileOutputStream(Tools.DIR_DATA + "/version_list.json");
71+
FileOutputStream fos = new FileOutputStream(Tools.DIR_CACHE + "/version_list.json");
7272
fos.write(jsonString.getBytes());
7373
fos.close();
7474

0 commit comments

Comments
 (0)