register ScriptSignal UserData type because it's not initialized for some reason
This commit is contained in:
parent
fd2aa19949
commit
1e7814488e
@ -165,6 +165,7 @@ pub fn set_globals(lua:&mlua::Lua,globals:&mlua::Table)->Result<(),mlua::Error>{
|
||||
|
||||
lua.register_userdata_type::<ScriptSignal>(|reg|{
|
||||
reg.add_field("Wait",wait);
|
||||
mlua::UserData::register(reg);
|
||||
})?;
|
||||
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user