Fix Paper's API url not being loaded uppon startup
This commit is contained in:
parent
de2c6b1f75
commit
9f9119bb56
6
start.sh
6
start.sh
@ -18,9 +18,6 @@ CURRENT_VERSION="v1.0.2"
|
|||||||
REPO_OWNER="jiriks74"
|
REPO_OWNER="jiriks74"
|
||||||
REPO_NAME="start_papermc.sh"
|
REPO_NAME="start_papermc.sh"
|
||||||
|
|
||||||
# API URL
|
|
||||||
api_url=""
|
|
||||||
|
|
||||||
# Check for dependencies
|
# Check for dependencies
|
||||||
function check_dependencies {
|
function check_dependencies {
|
||||||
# Check if curl is installed
|
# Check if curl is installed
|
||||||
@ -473,7 +470,8 @@ function load_config {
|
|||||||
|
|
||||||
# Load config
|
# Load config
|
||||||
source launch.cfg
|
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
|
# Main function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user