Skip to content

Commit

Permalink
oop
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Apr 3, 2024
1 parent 4619843 commit 4fd0470
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@ public static boolean installNewJreIfNeeded(Activity activity, JMinecraftVersion

String appropriateRuntime = MultiRTUtils.getNearestJreName(versionInfo.javaVersion.majorVersion);
if (appropriateRuntime != null) {
if (jre21Util.isInternalNewJRE(appropriateRuntime)) {
jre21Util.checkInternalNewJre(activity.getAssets());
if (JRE21Util.isInternalNewJRE(appropriateRuntime)) {
JRE21Util.checkInternalNewJre(activity.getAssets());
}
minecraftProfile.javaDir = Tools.LAUNCHERPROFILES_RTPREFIX + appropriateRuntime;
LauncherProfiles.load();
} else {
if (versionInfo.javaVersion.majorVersion <= 21) { // there's a chance we have an internal one for this case
if (!jre21Util.checkInternalNewJre(activity.getAssets())){
if (!JRE21Util.checkInternalNewJre(activity.getAssets())){
showRuntimeFail(activity, versionInfo);
return false;
} else {
minecraftProfile.javaDir = Tools.LAUNCHERPROFILES_RTPREFIX + jre21Util.NEW_JRE_NAME;
minecraftProfile.javaDir = Tools.LAUNCHERPROFILES_RTPREFIX + JRE.NEW_JRE_NAME;
LauncherProfiles.load();
}
} else {
Expand Down

0 comments on commit 4fd0470

Please sign in to comment.