Skip to content

Commit

Permalink
also write info.json directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 committed Nov 10, 2023
1 parent 7476370 commit a7ddeb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
4 changes: 2 additions & 2 deletions worlds/factorio/Mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def flop_random(low, high, base=None):

info = base_info.copy()
info["name"] = mod_name
with open(os.path.join(mod_dir, "info.json"), "wt") as f:
json.dump(info, f, indent=4)
mod.writing_tasks.append(lambda: (versioned_mod_name + "/info.json",
json.dumps(info, indent=4)))

# write the mod file
mod.write()
Expand Down
14 changes: 0 additions & 14 deletions worlds/factorio/data/mod/info.json

This file was deleted.

0 comments on commit a7ddeb0

Please sign in to comment.