fix(graphio): 修正bioyond到plr资源转换中的坐标计算错误

This commit is contained in:
ZiWei
2025-10-18 19:25:23 +08:00
parent 229888f834
commit 4ab3fadbec

View File

@@ -643,8 +643,8 @@ def resource_bioyond_to_plr(bioyond_materials: list[dict], type_mapping: Dict[st
for detail in material["detail"]: for detail in material["detail"]:
number = ( number = (
(detail.get("z", 0) - 1) * plr_material.num_items_x * plr_material.num_items_y (detail.get("z", 0) - 1) * plr_material.num_items_x * plr_material.num_items_y
+ (detail.get("x", 0) - 1) * plr_material.num_items_x + (detail.get("y", 0) - 1) * plr_material.num_items_y
+ (detail.get("y", 0) - 1) + (detail.get("x", 0) - 1)
) )
bottle = plr_material[number] bottle = plr_material[number]
if detail["typeName"] in type_mapping: if detail["typeName"] in type_mapping: