Skip to content

Commit

Permalink
Actually call the updater function
Browse files Browse the repository at this point in the history
  • Loading branch information
bsx-gh authored Oct 10, 2022
1 parent 2aa0fc6 commit e398deb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,18 @@ else
. ./presets/$presetsel
fi

if [[ "$enableupdater" == "false" ]];
then
game_check=`ls minecraft-pi-reborn-client-*.AppImage`
if [ "$game_check" == "" ]
then
echo "${red}[Error] Can't find MCPI AppImage. Try enabling the updater in your config.${rst}"
fi
else
updater
fi


if [[ "$usedefaultflags" == "true" ]];
then
MCPI_RENDER_DISTANCE="$renderdistance" MCPI_USERNAME="$username" ./minecraft-pi-reborn-client-*.AppImage --default --no-cache
Expand All @@ -132,4 +144,3 @@ if [[ "$asktoexit" == "true" ]];
then
read -p "Press [Enter] to close the program."
fi

0 comments on commit e398deb

Please sign in to comment.