Compare commits
No commits in common. "db8e22c34d6718b83fa906a520de141d285777e5" and "c12ad7df0f6d9dbd0c15ebac90a2b09a9169bc9f" have entirely different histories.
db8e22c34d
...
c12ad7df0f
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -318,7 +318,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "roblox_emulator"
|
||||
version = "0.3.2"
|
||||
version = "0.3.1"
|
||||
dependencies = [
|
||||
"glam",
|
||||
"mlua",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "roblox_emulator"
|
||||
version = "0.3.2"
|
||||
version = "0.3.1"
|
||||
edition = "2021"
|
||||
repository = "https://git.itzana.me/StrafesNET/roblox_emulator"
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
10
src/place.rs
10
src/place.rs
@ -5,16 +5,6 @@ pub struct Services{
|
||||
pub game:Ref,
|
||||
pub workspace:Ref,
|
||||
}
|
||||
impl Services{
|
||||
pub fn find_in(dom:&WeakDom)->Option<Self>{
|
||||
Some(Services{
|
||||
workspace:*dom.root().children().iter().find(|&&r|
|
||||
dom.get_by_ref(r).is_some_and(|instance|instance.class=="Workspace")
|
||||
)?,
|
||||
game:dom.root_ref(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new_place_with_instances_in_workspace(mut instance_dom:WeakDom)->(WeakDom,Services){
|
||||
//workspace
|
||||
|
@ -22,7 +22,6 @@ impl std::fmt::Display for Error{
|
||||
}
|
||||
}
|
||||
}
|
||||
impl std::error::Error for Error{}
|
||||
|
||||
fn init(lua:&mlua::Lua)->mlua::Result<()>{
|
||||
lua.sandbox(true)?;
|
||||
|
Loading…
Reference in New Issue
Block a user