Skip to content

Commit

Permalink
fix handling of changes in foundry11 module format
Browse files Browse the repository at this point in the history
  • Loading branch information
rrgeorge committed Aug 3, 2024
1 parent 9995e5f commit 7298f4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions foundrytoencounter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3821,6 +3821,8 @@ def openFile(self):
with z.open(filename) as f:
mod = json.load(f)
if mod:
if "name" not in mod and "id" in mod:
mod["name"] = mod["id"]
if isworld:
self.label.setText("Foundry World: {}".format(mod["title"]))
else:
Expand Down

0 comments on commit 7298f4e

Please sign in to comment.