mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 22:26:56 -04:00
Fix unconverted version go to run
This commit is contained in:
parent
420d9af8b2
commit
125e2f4a5e
@ -235,7 +235,7 @@ public class MCLauncherActivity extends AppCompatActivity
|
||||
|
||||
tvVersion.setText(getStr(R.string.mcl_version_msg) + versionSelector.getSelectedItem());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPostResume()
|
||||
@ -600,11 +600,8 @@ public class MCLauncherActivity extends AppCompatActivity
|
||||
publishProgress("5", getStr(R.string.mcl_launch_download_client) + p1[0]);
|
||||
outUnpatchedConvert = new File(unpatchedPath);
|
||||
boolean patchedExist = new File(patchedFile).exists();
|
||||
System.out.println("PATCHED:" + patchedFile + ",exist:" + Boolean.toString(patchedExist));
|
||||
if (!patchedExist) {
|
||||
System.out.println("UNPATCHED:" + outUnpatchedConvert + ",exist:" + Boolean.toString(outUnpatchedConvert.exists()));
|
||||
if (!outUnpatchedConvert.exists()) {
|
||||
System.out.println("INPUT:" + inputPath + ",exist:" + Boolean.toString(new File(inputPath).exists()));
|
||||
if (!new File(inputPath).exists()) {
|
||||
currentLog.setLength(0);
|
||||
|
||||
@ -613,6 +610,7 @@ public class MCLauncherActivity extends AppCompatActivity
|
||||
inputPath,
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
convertStr = getStr(R.string.mcl_launch_convert_client, p1[0]);
|
||||
publishProgress("5", convertStr);
|
||||
@ -635,7 +633,6 @@ public class MCLauncherActivity extends AppCompatActivity
|
||||
|
||||
patchAndCleanJar(p1[0], outUnpatchedConvert.getAbsolutePath(), patchedFile);
|
||||
outUnpatchedConvert.delete();
|
||||
}
|
||||
} else {
|
||||
patchAndCleanJar(p1[0], outUnpatchedConvert.getAbsolutePath(), patchedFile);
|
||||
outUnpatchedConvert.delete();
|
||||
|
Loading…
x
Reference in New Issue
Block a user