diff --git a/arkprts/assets/bundle.py b/arkprts/assets/bundle.py index c474e2b..174c589 100644 --- a/arkprts/assets/bundle.py +++ b/arkprts/assets/bundle.py @@ -220,6 +220,9 @@ def recursively_collapse_keys(obj: typing.Any) -> typing.Any: if all(isinstance(item, dict) and item.keys() == {"key", "value"} for item in obj): return {item["key"]: recursively_collapse_keys(item["value"]) for item in obj} + if all(isinstance(item, dict) and item.keys() == {"Key", "Value"} for item in obj): + return {item["Key"]: recursively_collapse_keys(item["Value"]) for item in obj} + return [recursively_collapse_keys(item) for item in obj] if isinstance(obj, dict):