lol idk #1

Open
Quaternions wants to merge 826 commits from StrafesNET/strafe-project:master into master
Showing only changes of commit b0df1fb3bd - Show all commits

View File

@ -104,11 +104,11 @@ impl Instance{
Ok(instance.name.clone()) Ok(instance.name.clone())
}) })
}); });
fields.add_field_method_set("Name",|lua,this,val:String|{ fields.add_field_method_set("Name",|lua,this,val:mlua::String|{
dom(lua,move|dom|{ dom(lua,|dom|{
let instance=this.get_mut(dom)?; let instance=this.get_mut(dom)?;
//Why does this need to be cloned? //Why does this need to be cloned?
instance.name=val.clone(); instance.name=val.to_str()?.to_owned();
Ok(()) Ok(())
}) })
}); });