Skip to content

Commit 442bcde

Browse files
Merge remote-tracking branch 'origin/v3_openjdk' into v3_openjdk
2 parents 5fe3b2f + 85ddaa4 commit 442bcde

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ For more details, check out our [wiki](https://angelauramc.dev/wiki)!
3636
* Modding via Forge and Fabric are also supported.
3737
* This repository contains source code for Android. For iOS/iPadOS, check out [Amethyst-iOS](https://github.com/AngelAuraMC/Amethyst-iOS).
3838

39-
## Getting PojavLauncher
39+
## Getting Amethyst
4040

41-
You can get PojavLauncher via two methods:
41+
You can get Amethyst via two methods:
4242

4343
1. **Releases:** Download the prebuilt app from our [stable releases](https://github.com/AngelAuraMC/Amethyst-Android/releases) or [automatic builds](https://github.com/AngelAuraMC/Amethyst-Android/actions).
4444
2. **Build from Source:** Follow the [building instructions](#building) below.

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
import java.io.File;
2929
import java.io.IOException;
30+
import java.net.UnknownHostException;
3031
import java.util.ArrayList;
3132
import java.util.Map;
3233
import java.util.Set;
@@ -76,8 +77,14 @@ public void start(@Nullable Activity activity, @Nullable JMinecraftVersionList.V
7677

7778
sExecutorService.execute(() -> {
7879
try {
80+
if(isLocalProfile){
81+
throw new RuntimeException("Download failed. Please make sure you are logged in with a Microsoft Account.");
82+
}
7983
downloadGame(activity, version, realVersion);
8084
listener.onDownloadDone();
85+
}catch (UnknownHostException e){
86+
Log.i("DownloadMirror", e.toString());
87+
Tools.showErrorRemote("Can't download Minecraft, no internet connection found", e);
8188
}catch (Exception e) {
8289
listener.onDownloadFailed(e);
8390
}
@@ -516,10 +523,6 @@ private void verifyFileSha1() throws Exception {
516523
}
517524

518525
private void downloadFile() throws Exception {
519-
if(isLocalProfile){
520-
throw new RuntimeException("Download failed. Please make sure you are logged in with a Microsoft Account.");
521-
}
522-
523526
try {
524527
DownloadUtils.ensureSha1(mTargetPath, mTargetSha1, () -> {
525528
DownloadMirror.downloadFileMirrored(mDownloadClass, mTargetUrl, mTargetPath,

app_pojavlauncher/src/main/res/values/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,9 @@
439439
<string name="mg_renderer_glsl_cache">Max GLSL cache size</string>
440440
<string name="mg_renderer_angle">Use ANGLE as driver</string>
441441
<string name="mg_renderer_multidraw">Multidraw emulation mode</string>
442-
<string name="mg_renderer_title_gl43exts">Enable incomplete OpenGL 4.3 emulation</string>
442+
<string name="mg_renderer_title_gl43exts">Advertise Experimental OpenGL 4.3 extensions</string>
443443
<string name="mg_renderer_summary_gl43exts">May help with mod crashes. Disable if not needed, can cause crashes.</string>
444-
<string name="mg_renderer_title_computeShaderext">Enable Compute Shader emulation</string>
444+
<string name="mg_renderer_title_computeShaderext">Advertise Experimental Compute Shader extension</string>
445445
<string name="mg_renderer_summary_computeShaderext">May help with shaderpack glitches. Disable if not needed, can cause crashes.</string>
446446
<string name="mg_renderer_title_errorSetting">Error Filtering</string>
447447
<string name="app_short_name">Amethyst</string>

0 commit comments

Comments
 (0)