From e398deb7dfb9bbcffb4b61e202d4b26f5a980001 Mon Sep 17 00:00:00 2001 From: bsX <113872999+bsx-gh@users.noreply.github.com> Date: Sun, 9 Oct 2022 19:10:46 -0700 Subject: [PATCH] Actually call the updater function --- launch.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/launch.sh b/launch.sh index 69aa08d..c32ff93 100644 --- a/launch.sh +++ b/launch.sh @@ -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 @@ -132,4 +144,3 @@ if [[ "$asktoexit" == "true" ]]; then read -p "Press [Enter] to close the program." fi -