Skip to content

Commit

Permalink
fix: AC will not be excluded based on VD
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Joker committed Jan 12, 2025
1 parent 45dc825 commit fe3dbfe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ packs:
namespace: rhp
# 资源包目录下但不属于资源包的文件
excluded_files:
- '.github/**'
- '.git/**'
- '.git*'
- '.mc*'
Expand Down
1 change: 1 addition & 0 deletions config_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ packs:
- rhp
# Files under the RP directory that do not belong to the RP.
excluded_files:
- '.github/**'
- '.git/**'
- '.git*'
- '.mc*'
Expand Down
Binary file modified data/VanillaData_1.21.51.1.pkl
Binary file not shown.
6 changes: 3 additions & 3 deletions models/vanilla_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def async_extract(self):
ui_namespace = []
property_discarded = set()
entity_mapping = {
"animation_controllers": ("animation_index", "ac"),
"animation_controllers": ("animation_index", "animation"),
"render_controllers": ("rc",),
"materials": ("material_index",),
"textures": ("texture_index",),
Expand Down Expand Up @@ -169,8 +169,8 @@ def stats_es(path: str, key: str = None):
instance = TraverseStats()
match key:
case "ac":
instance.traverse(data, "animations", get_ac_id, dag)
case "animations":
instance.traverse(data, "animation", get_ac_id, dag)
case "animation":
instance.traverse(data, key, get_animation_id, dag)
case "entity":
instance.traverse(
Expand Down

0 comments on commit fe3dbfe

Please sign in to comment.