Skip to content

Commit

Permalink
fix attach stem
Browse files Browse the repository at this point in the history
  • Loading branch information
zNightlord committed Dec 18, 2024
1 parent bda2813 commit 4e55407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MCprep_addon/materials/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def get_mc_canonical_name(name: str) -> Tuple[str, Optional[Form]]:
# mixed up with the new "water": "painting/water" texture.
general_name = "water_still"

if "_stem_stage" in general_name:
if "_stem" in general_name:
# For melon/pumpkin stem stage map to only melon_stem/pumpkin_stem
general_name = general_name.split("_stage")[0]
general_name = general_name.rsplit("_", 1)[0]

if general_name in env.json_data["blocks"]["block_mapping_mc"]:
canon = env.json_data["blocks"]["block_mapping_mc"][general_name]
Expand Down

0 comments on commit 4e55407

Please sign in to comment.