Skip to content

Commit

Permalink
fix cf having a different filename
Browse files Browse the repository at this point in the history
Signed-off-by: TheBossMagnus <[email protected]>
  • Loading branch information
TheBossMagnus committed Jan 31, 2024
1 parent 167aec8 commit c66b937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_json(path):
logging.debug('Extracted %s to %s', path, temp_dir)

# Parse the json file
json_path = os.path.join(temp_dir, 'modrinth.index.json')
json_path = os.path.join(temp_dir, 'modrinth.index.json' if constants.Modpacks_Format == 'modrinth' else 'manifest.json')
with open(json_path, 'r', encoding="utf-8") as json_file:
logging.debug('Parsed %s', json_path)
return json.load(json_file)
Expand Down

0 comments on commit c66b937

Please sign in to comment.