Skip to content

Commit bd3df6c

Browse files
authored
fix for translation mods
1 parent 4148c15 commit bd3df6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/update.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_translation_mods():
8181
for key, value in vcmi_mods.items():
8282
url = value["mod"].replace(" ", "%20")
8383
mod = load_vcmi_json(urllib.request.urlopen(url).read())
84-
if "language" in mod:
84+
if "language" in mod and "modType" in mod and mod["modType"].lower() == "translation":
8585
vcmi_translation_mods[mod["language"]] = (url, mod)
8686

8787
return vcmi_translation_mods

0 commit comments

Comments
 (0)