Skip to content

Commit 0b522d4

Browse files
committed
fix stack overflow
1 parent aaa9d9a commit 0b522d4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

crates/bevy_mod_scripting_core/src/script_system.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use bevy_ecs::{
2222
system::{RunSystemError, SystemIn, SystemStateFlags},
2323
world::DeferredWorld,
2424
};
25-
use bevy_log::{debug, error, info, warn_once};
25+
use bevy_log::{debug, error, warn_once};
2626
use bevy_mod_scripting_bindings::{
2727
AppReflectAllocator, AppScheduleRegistry, AppScriptComponentRegistry,
2828
AppScriptFunctionRegistry, InteropError, IntoScript, ReflectAccessId, ReflectReference,
@@ -155,11 +155,8 @@ impl ScriptSystemBuilder {
155155
{
156156
for default_set in other.default_system_sets() {
157157
if is_before {
158-
info!("before {default_set:?}");
159158
system_config = system_config.before(*default_set);
160159
} else {
161-
info!("before {default_set:?}");
162-
info!("after {default_set:?}");
163160
system_config = system_config.after(*default_set);
164161
}
165162
}
@@ -260,7 +257,8 @@ impl<P: IntoScriptPluginParams> System for DynamicScriptSystem<P> {
260257
}
261258

262259
fn flags(&self) -> SystemStateFlags {
263-
if self.is_exclusive() {
260+
println!("flags");
261+
if self.exclusive {
264262
SystemStateFlags::NON_SEND | SystemStateFlags::EXCLUSIVE
265263
} else {
266264
SystemStateFlags::empty()

0 commit comments

Comments
 (0)