diff --git a/loader/assets/merge.py b/loader/assets/merge.py index a6566a90..58ba1013 100644 --- a/loader/assets/merge.py +++ b/loader/assets/merge.py @@ -95,8 +95,9 @@ def _add_texture(filename): mod_local_id = asset.get("filename").lstrip("/") if ".png" not in mod_local_id: mod_local_id += ".png" - needs_autogeneration.add(mod_local_id) - _add_texture(mod_local_id) + if mod_local_id not in needs_autogeneration: + needs_autogeneration.add(mod_local_id) + _add_texture(mod_local_id) if mod_local_id not in mapping_n_region: continue new_id = mapping_n_region[mod_local_id]