register ScriptSignal UserData type because it's not initialized for some reason

This commit is contained in:
Quaternions 2024-10-17 18:51:02 -07:00
parent fd2aa19949
commit 1e7814488e

View File

@ -165,6 +165,7 @@ pub fn set_globals(lua:&mlua::Lua,globals:&mlua::Table)->Result<(),mlua::Error>{
lua.register_userdata_type::<ScriptSignal>(|reg|{ lua.register_userdata_type::<ScriptSignal>(|reg|{
reg.add_field("Wait",wait); reg.add_field("Wait",wait);
mlua::UserData::register(reg);
})?; })?;
Ok(()) Ok(())