From ddadc2be447a9f5016609fd91124b0be7de8d886 Mon Sep 17 00:00:00 2001 From: ggodot Date: Thu, 29 Jan 2026 20:48:21 +0100 Subject: [PATCH] mods works, ram test --- mc-install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mc-install.sh b/mc-install.sh index 1ae29a7..ef94663 100755 --- a/mc-install.sh +++ b/mc-install.sh @@ -86,6 +86,8 @@ java -Xms512M -Xmx2048M -jar NeoForge.jar --installServer >> /dev/null ### RAM configuration ### +echo "test" >> /opt/minecraft/user_jvm_args.txt + if [[ "$minRam" > "$maxRam" ]]; then pritf "\n You allocated too low max ram or too much min ram. Manual intervention at the end will be needed\n" echo "-Xmx?G # in place of ? put number of RAM you want to set ass maximum" @@ -100,7 +102,7 @@ elif [[ ! "$maxRam" =~ ("G"|"MB") ]]; then printf "Allocating ${maxRam}G as RAM maximum" echo "-Xmx${maxRam}G" >> /opt/minecraft/user_jvm_args.txt else - pritnf "\n!!! Sorry I have no idea what are you trying to do :/ Manual intervention will be needed at the end \n" + printf "\n!!! Sorry I have no idea what are you trying to do :/ Manual intervention will be needed at the end \n" $maxRam="Error" echo "-Xms?G # in place of ? put number of RAM you want to set as maximum" fi @@ -218,3 +220,4 @@ printf "\n+ Done, thanks for your time. It is goode idea to chack if everythink printf "\nsystemctl status mc-forge" printf "\nsu minecraft -s /bin/bash" printf "\n+ it is good idea to have some fun with screen before trying to open minecraft conesole 'screen -r' while loged wia minecraft user" +printf "\n"