From 7298f4ef79d93ed58a8a40a5f148798951a944ef Mon Sep 17 00:00:00 2001 From: Robert George Date: Fri, 2 Aug 2024 20:38:39 -0700 Subject: [PATCH] fix handling of changes in foundry11 module format --- foundrytoencounter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/foundrytoencounter.py b/foundrytoencounter.py index 0e0c303..673b24c 100644 --- a/foundrytoencounter.py +++ b/foundrytoencounter.py @@ -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: