新增transfer_biomek的msg

This commit is contained in:
Xuwznln
2025-06-04 19:03:00 +08:00
parent 147b8f47c0
commit c5a495f409
5 changed files with 12 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ _msg_converter: Dict[Type, Any] = {
Bool: lambda x: Bool(data=bool(x)),
str: str,
String: lambda x: String(data=str(x)),
Point: lambda x: Point(x=x.x, y=x.y, z=x.z),
Point: lambda x: Point(x=x.x, y=x.y, z=x.z) if not isinstance(x, dict) else Point(x=x.get("x", 0), y=x.get("y", 0), z=x.get("z", 0)),
Resource: lambda x: Resource(
id=x.get("id", ""),
name=x.get("name", ""),