This commit is contained in:
Jaroslaw Konik 2025-05-21 22:09:30 +02:00
parent c75f158dfb
commit 86e7567438
4 changed files with 7 additions and 7 deletions

View file

@ -79,11 +79,11 @@ where
let mut runtime = world.get_resource_mut::<R>().expect("No runtime resource");
if R::needs_own_thread() {
runtime.with_engine_mut(move |engine| {
runtime.with_engine_thread_mut(move |engine| {
Out::into_runtime_value_with_engine(result, engine)
})
} else {
runtime.with_engine_thread_mut(move |engine| {
runtime.with_engine_mut(move |engine| {
Out::into_runtime_value_with_engine(result, engine)
})
}
@ -128,11 +128,11 @@ macro_rules! impl_tuple {
inner_system.apply_deferred(world);
let mut runtime = world.get_resource_mut::<RN>().expect("No runtime resource");
if RN::needs_own_thread() {
runtime.with_engine_mut(move |engine| {
runtime.with_engine_thread_mut(move |engine| {
Out::into_runtime_value_with_engine(result, engine)
})
} else {
runtime.with_engine_thread_mut(move |engine| {
runtime.with_engine_mut(move |engine| {
Out::into_runtime_value_with_engine(result, engine)
})
}

View file

@ -300,7 +300,7 @@ impl Runtime for LuaRuntime {
}
fn needs_own_thread() -> bool {
true
false
}
}

View file

@ -209,7 +209,7 @@ impl Runtime for RhaiRuntime {
}
fn needs_own_thread() -> bool {
true
false
}
}

View file

@ -478,7 +478,7 @@ impl Runtime for RubyRuntime {
}
fn needs_own_thread() -> bool {
false
true
}
}