File tree Expand file tree Collapse file tree
app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments