Skip to content

Commit

Permalink
- Fixed an issue where Java 17 and 21 was not installed at all
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Jun 22, 2024
1 parent 711acf7 commit f4661f5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mcserver_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1244,6 +1244,9 @@ case $CHOICE in
;;
15)
ver=1.21
check_java21
version_grab
check_current21
forge_vp_1.21
;;
esac
Expand Down Expand Up @@ -2247,10 +2250,17 @@ function forge_new_version_check {

if [[ $ver = "1.20.3" ]]
then
clear
check_java21
versio#
check_current21
normal_forge
elif [[ $ver = "1.17"* ]] || [[ $ver = "1.18"* ]] || [[ $ver = "1.19"* ]] || [[ $ver = "1.20"* ]] || [[ $ver = "1.21"* ]]
then
clear
check_java17
version_grab
check_current17
folder_creator_forge
cd $dirname
wget https://maven.minecraftforge.net/net/minecraftforge/forge/$ver-$forge_ex_version_number/forge-$ver-$forge_ex_version_number-installer.jar
Expand Down Expand Up @@ -3582,7 +3592,7 @@ distro_check () {
}

## Script Version
scriptversion="12.0"
scriptversion="12.1"
##

## Latest Version
Expand Down

0 comments on commit f4661f5

Please sign in to comment.