Minecraft client: fix NoneType-related error if run without apmc file
This commit is contained in:
parent
4c0f0a16c9
commit
4730a928b5
|
@ -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"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue