Added failsafe to allow minecraft to launch if update server cant be
contacted
This commit is contained in:
parent
1de111ee2c
commit
2f24519015
@ -9,6 +9,7 @@ import datetime
|
|||||||
|
|
||||||
|
|
||||||
def perform_installation(instance_name, prism_command, prism_instance_path):
|
def perform_installation(instance_name, prism_command, prism_instance_path):
|
||||||
|
try:
|
||||||
ftp = FTP("gitea.piwalker.net")
|
ftp = FTP("gitea.piwalker.net")
|
||||||
ftp.login()
|
ftp.login()
|
||||||
ftp.prot_p()
|
ftp.prot_p()
|
||||||
@ -49,7 +50,9 @@ def perform_installation(instance_name, prism_command, prism_instance_path):
|
|||||||
version = fp.readline().rstrip()
|
version = fp.readline().rstrip()
|
||||||
if version == versions[-1]["Version"]:
|
if version == versions[-1]["Version"]:
|
||||||
break
|
break
|
||||||
|
except:
|
||||||
|
print("Unable to check for updates. Modpack may be out of date")
|
||||||
|
finally:
|
||||||
# Launching PrismLauncher with the instance
|
# Launching PrismLauncher with the instance
|
||||||
subprocess.run([prism_command, '-l', instance_name])
|
subprocess.run([prism_command, '-l', instance_name])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user