mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Minecraft client: fix NoneType-related error if run without apmc file
This commit is contained in:
@@ -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"]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user