From 3fabb6dbaed0ab662c012c04d73e5eae4c7076c9 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 4 Oct 2024 16:47:53 -0700 Subject: [PATCH] fix print --- src/runner/instance.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner/instance.rs b/src/runner/instance.rs index cef224f..b3e12ba 100644 --- a/src/runner/instance.rs +++ b/src/runner/instance.rs @@ -194,11 +194,11 @@ impl Instance{ instance.properties.insert(index_str.to_owned(),rbx_types::Variant::Float32(typed_value)); }, rbx_types::Variant::Enum(_)=>{ - let typed_value:super::r#enum::Enum=value.as_userdata().ok_or(mlua::Error::runtime("Expected Userdata"))?.take()?; + let typed_value:super::r#enum::Enum=value.as_userdata().ok_or(mlua::Error::runtime("Expected Enum"))?.take()?; instance.properties.insert(index_str.to_owned(),rbx_types::Variant::Enum(typed_value.into())); }, rbx_types::Variant::Color3(_)=>{ - let typed_value:super::color3::Color3=value.as_userdata().ok_or(mlua::Error::runtime("Expected Userdata"))?.take()?; + let typed_value:super::color3::Color3=value.as_userdata().ok_or(mlua::Error::runtime("Expected Color3"))?.take()?; instance.properties.insert(index_str.to_owned(),rbx_types::Variant::Color3(typed_value.into())); }, other=>return Err(mlua::Error::runtime(format!("Unimplemented property type: {other:?}"))),