diff --git a/src/runner/script_signal.rs b/src/runner/script_signal.rs index 45eab8e..877f2b6 100644 --- a/src/runner/script_signal.rs +++ b/src/runner/script_signal.rs @@ -165,6 +165,7 @@ pub fn set_globals(lua:&mlua::Lua,globals:&mlua::Table)->Result<(),mlua::Error>{ lua.register_userdata_type::(|reg|{ reg.add_field("Wait",wait); + mlua::UserData::register(reg); })?; Ok(())