From 4e5540700f9e998c6b78090abc717ba67e947e52 Mon Sep 17 00:00:00 2001 From: Trung <0znightlord0@gmail.com> Date: Wed, 18 Dec 2024 19:32:47 +0700 Subject: [PATCH] fix attach stem --- MCprep_addon/materials/generate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MCprep_addon/materials/generate.py b/MCprep_addon/materials/generate.py index df3e3e45..59062216 100644 --- a/MCprep_addon/materials/generate.py +++ b/MCprep_addon/materials/generate.py @@ -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]