Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 2896495

Browse files
authored
1 parent c347354 commit 2896495

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎UnityPy/tools/extractor.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ def defaulted_export_index(type: ClassIDType):
105105
return 999
106106

107107
if use_container:
108-
container = sorted(env.container, key=lambda x: defaulted_export_index(x[1].type))
108+
container = sorted(
109+
env.container.items(), key=lambda x: defaulted_export_index(x[1].type)
110+
)
109111
for obj_path, obj in container:
110112
# The filter here can only access metadata. The same filter may produce a different result later in extract_obj after obj.read()
111113
if asset_filter is not None and not asset_filter(obj):

0 commit comments

Comments
 (0)