Fix bug in module-prototype loading. Resolve #2195.

This commit is contained in:
Griatch 2020-09-16 23:37:55 +02:00
parent 5b9154d15c
commit 478b2eed14

View file

@ -167,7 +167,8 @@ for mod in settings.PROTOTYPE_MODULES:
if "prototype_locks" in prot if "prototype_locks" in prot
else "use:all();edit:false()" else "use:all();edit:false()"
), ),
"prototype_tags": list(set(make_iter(prot.get("prototype_tags", [])) + ["module"])), "prototype_tags": list(set(list(
make_iter(prot.get("prototype_tags", []))) + ["module"])),
} }
) )
_MODULE_PROTOTYPES[actual_prot_key] = prot _MODULE_PROTOTYPES[actual_prot_key] = prot