From 9f9119bb5660c6752f43d32c814ea557a6230e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Thu, 23 Feb 2023 08:33:11 +0100 Subject: [PATCH] Fix Paper's API url not being loaded uppon startup --- start.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/start.sh b/start.sh index 178bca7..660d072 100755 --- a/start.sh +++ b/start.sh @@ -18,9 +18,6 @@ CURRENT_VERSION="v1.0.2" REPO_OWNER="jiriks74" REPO_NAME="start_papermc.sh" -# API URL -api_url="" - # Check for dependencies function check_dependencies { # Check if curl is installed @@ -473,7 +470,8 @@ function load_config { # Load config source launch.cfg - api_url="https://api.papermc.io/v2/projects/paper/versions/$select_version/builds/" + # API URL + api_url="https://api.papermc.io/v2/projects/paper/versions/$select_version/builds" } # Main function