diff --git a/app/classes/shared/main_controller.py b/app/classes/shared/main_controller.py index 0ae5d093..eb8c3219 100644 --- a/app/classes/shared/main_controller.py +++ b/app/classes/shared/main_controller.py @@ -419,13 +419,15 @@ class Controller: data["create_type"] == "minecraft_java" and root_create_data["create_type"] == "download_jar" ): - server_obj = self.servers.get_server_obj(new_server_id) - url = ( - f"https://serverjars.com/api/fetchJar/{create_data['category']}" - f"/{create_data['type']}/{create_data['version']}" - ) - server_obj.executable_update_url = url - self.servers.update_server(server_obj) + # 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) + url = ( + f"https://serverjars.com/api/fetchJar/{create_data['category']}" + f"/{create_data['type']}/{create_data['version']}" + ) + server_obj.executable_update_url = url + self.servers.update_server(server_obj) self.server_jars.download_jar( create_data["category"], create_data["type"], @@ -509,10 +511,12 @@ class Controller: user_id, server_type="minecraft-java", ) - server_obj = self.servers.get_server_obj(new_id) - url = f"https://serverjars.com/api/fetchJar/{jar}/{server}/{version}" - server_obj.executable_update_url = url - self.servers.update_server(server_obj) + # modded update urls from server jars will only update the installer + if jar != "modded": + server_obj = self.servers.get_server_obj(new_id) + url = f"https://serverjars.com/api/fetchJar/{jar}/{server}/{version}" + server_obj.executable_update_url = url + self.servers.update_server(server_obj) # download the jar self.server_jars.download_jar( jar, server, version, os.path.join(server_dir, server_file), new_id