fix(client/movemnet): allow missing goal types
This commit is contained in:
parent
04f5e0e8c2
commit
5b8e2280e3
@ -54,7 +54,7 @@ pub async fn go_to(
|
||||
};
|
||||
let (goal_type, options) = if let Some(metadata) = metadata {
|
||||
(
|
||||
metadata.get("type")?,
|
||||
metadata.get("type").unwrap_or_default(),
|
||||
metadata.get("options").unwrap_or(lua.create_table()?),
|
||||
)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user