Fix api_url not being correctly set on startup

This commit is contained in:
Jiří Štefka 2023-02-23 08:25:20 +01:00 committed by GitHub
parent f1ede64a05
commit 00687cbb7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,7 +7,7 @@
# and acknowledge the original script and author. #
#############################################################################################################
CURRENT_VERSION="v1.0.1"
CURRENT_VERSION="v1.0.2"
# --------------------------------------------------
# You shouldn't need to change anything in this file
@ -19,7 +19,7 @@ REPO_OWNER="jiriks74"
REPO_NAME="start_papermc.sh"
# API URL
api_url="https://api.papermc.io/v2/projects/paper/versions/$select_version/builds"
api_url=""
# Check for dependencies
function check_dependencies {
@ -473,6 +473,7 @@ function load_config {
# Load config
source launch.cfg
api_url="https://api.papermc.io/v2/projects/paper/versions/$select_version/builds/"
}
# Main function