Minecraft client: fix NoneType-related error if run without apmc file

This commit is contained in:
espeon65536 2021-08-15 06:11:20 -05:00 committed by Fabian Dill
parent 4c0f0a16c9
commit 4730a928b5
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ if __name__ == '__main__':
args = parser.parse_args() args = parser.parse_args()
options = Utils.get_options() options = Utils.get_options()
apmc_file = os.path.abspath(args.apmc_file) apmc_file = os.path.abspath(args.apmc_file) if args.apmc_file is not None else None
forge_dir = options["minecraft_options"]["forge_directory"] forge_dir = options["minecraft_options"]["forge_directory"]
max_heap = options["minecraft_options"]["max_heap_size"] max_heap = options["minecraft_options"]["max_heap_size"]