Skip to content

Commit

Permalink
Update installation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Jan 14, 2024
1 parent 0fdc541 commit 739c384
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Libraries/PyKotor/src/pykotor/extract/installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ def module_name(self, module_filename: str, use_hardcoded: bool = True) -> str:
name = locstring.get(Language.ENGLISH, Gender.MALE)
else:
name = self.talktable().string(locstring.stringref)
break
break

return name or root

Expand Down Expand Up @@ -1446,8 +1446,8 @@ def module_id(self, module_filename: str, use_hardcoded: bool = True) -> str:
if module_ifo_data:
ifo: GFF = read_gff(module_ifo_data)
mod_id = ifo.root.get_resref("Mod_Entry_Area").get()

break
if mod_id:
break

return mod_id

Expand Down

0 comments on commit 739c384

Please sign in to comment.