From 903e813c30e17e1fa7865c48b2dd0ec97b7f7a67 Mon Sep 17 00:00:00 2001 From: artdeell Date: Fri, 14 Jun 2024 21:30:50 +0300 Subject: [PATCH] Feat[jre_unpack]: add Jre 21 path to the launcher and .gitignore --- .gitignore | 1 + .../src/main/java/net/kdt/pojavlaunch/NewJREUtil.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ff3508cdb5..235cf03e66 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /*/build app_pojavlauncher/src/main/assets/components/jre /app_pojavlauncher/src/main/assets/components/jre-new/ +/app_pojavlauncher/src/main/assets/components/jre-21/ local.properties .idea/ app_pojavlauncher/.cxx/ diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/NewJREUtil.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/NewJREUtil.java index 1f264557b9..01bfa3db0b 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/NewJREUtil.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/NewJREUtil.java @@ -101,7 +101,8 @@ private static void showRuntimeFail(Activity activity, JMinecraftVersionList.Ver } private enum InternalRuntime { - JRE_17(17, "Internal-17", "components/jre-new"); + JRE_17(17, "Internal-17", "components/jre-new"), + JRE_21(21, "Internal-21", "components/jre-21"); public final int majorVersion; public final String name; public final String path;