Remove feature for modded servers

This commit is contained in:
Andrew 2022-10-20 15:05:58 -04:00
parent 2d5d263852
commit c2f5daf8e9

View File

@ -419,6 +419,8 @@ class Controller:
data["create_type"] == "minecraft_java" data["create_type"] == "minecraft_java"
and root_create_data["create_type"] == "download_jar" and root_create_data["create_type"] == "download_jar"
): ):
# modded update urls from server jars will only update the installer
if create_data["category"] != "modded":
server_obj = self.servers.get_server_obj(new_server_id) server_obj = self.servers.get_server_obj(new_server_id)
url = ( url = (
f"https://serverjars.com/api/fetchJar/{create_data['category']}" f"https://serverjars.com/api/fetchJar/{create_data['category']}"
@ -509,6 +511,8 @@ class Controller:
user_id, user_id,
server_type="minecraft-java", server_type="minecraft-java",
) )
# modded update urls from server jars will only update the installer
if jar != "modded":
server_obj = self.servers.get_server_obj(new_id) server_obj = self.servers.get_server_obj(new_id)
url = f"https://serverjars.com/api/fetchJar/{jar}/{server}/{version}" url = f"https://serverjars.com/api/fetchJar/{jar}/{server}/{version}"
server_obj.executable_update_url = url server_obj.executable_update_url = url