This commit is contained in:
ArtDev 2020-12-14 08:07:39 +03:00 committed by GitHub
parent e82530ba91
commit ba734ae08f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -430,7 +430,7 @@ public class PojavLoginActivity extends BaseActivity
} }
if(new File(Tools.homeJreDir+"/versions").isDirectory()) { if(new File(Tools.homeJreDir+"/versions").isDirectory()) {
FileUtils.deleteDirectory(new File(Tools.homeJreDir+"/versions")); FileUtils.deleteDirectory(new File(Tools.homeJreDir+"/versions"));
Tools.copyAssetFile(this, "components/jre/version", Tools.homeJreDir + "/",s, true); Tools.copyAssetFile(this, "components/jre/version", Tools.homeJreDir + "/","version", true);
} }
if (!isJavaRuntimeInstalled(am)) { if (!isJavaRuntimeInstalled(am)) {
if(!installRuntimeAutomatically(am)) { if(!installRuntimeAutomatically(am)) {
@ -438,7 +438,7 @@ public class PojavLoginActivity extends BaseActivity
uncompressTarXZ(jreTarFile, new File(Tools.homeJreDir)); uncompressTarXZ(jreTarFile, new File(Tools.homeJreDir));
} }
setPref(PREF_IS_INSTALLED_JAVARUNTIME, true); setPref(PREF_IS_INSTALLED_JAVARUNTIME, true);
Tools.copyAssetFile(this, "components/jre/version", Tools.homeJreDir + "/",s, true); Tools.copyAssetFile(this, "components/jre/version", Tools.homeJreDir + "/","version", true);
} }
JREUtils.relocateLibPath(this); JREUtils.relocateLibPath(this);