Skip to content

Commit

Permalink
fix more logic mc/java-version setting and all unkown get java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmis committed Jun 3, 2024
1 parent f9ce2aa commit 490c854
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rootfs/usr/local/bin/set_mc_ver
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,18 @@ function load_java() {

1.17*)
/usr/local/bin/set_java_ver 16

;;
1.13*|1.14*|1.15*|1.16*)
/usr/local/bin/set_java_ver 11
;;
1.8*)

1.8*|1.9*|1.10*|1.11*|1.12*)
/usr/local/bin/set_java_ver 8
;;

*)
/usr/local/bin/set_java_ver 11
/usr/local/bin/set_java_ver 21
;;

esac
Expand Down

0 comments on commit 490c854

Please sign in to comment.