mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
fix(graphio): 修正bioyond到plr资源转换中的坐标计算错误
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user