summaryrefslogtreecommitdiff
path: root/src/parameter.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-21 17:49:50 +0100
committertroido <troido@protonmail.com>2020-02-21 17:49:50 +0100
commit07cc6d8919193c38cc13b2567ede5a510938db18 (patch)
tree83588f118036fa56905043eb23c5a1d79e0497da /src/parameter.rs
parente69d9c3b5266fd6f9215d1e3f4a761b8027a785c (diff)
players can now go to different rooms
Diffstat (limited to 'src/parameter.rs')
-rw-r--r--src/parameter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parameter.rs b/src/parameter.rs
index cca0681..e82915b 100644
--- a/src/parameter.rs
+++ b/src/parameter.rs
@@ -23,7 +23,7 @@ impl Parameter {
ParameterType::String => Some(Self::String(val.as_str()?.to_string())),
ParameterType::Int => Some(Self::Int(val.as_i64()?)),
ParameterType::Float => Some(Self::Float(val.as_f64()?)),
- ParameterType::Template => Some(Self::Template(Template::from_json(val)?))
+ ParameterType::Template => Some(Self::Template(Template::from_json(val).ok()?))
}
}