mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Remove feature for modded servers
This commit is contained in:
parent
2d5d263852
commit
c2f5daf8e9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user