Skip to content

Commit 78f81a2

Browse files
authored
fix: plugin registration order affecting which globals are exported (#346)
fix: fix plugin registration order affecting which globals are exported
1 parent 212e536 commit 78f81a2

File tree

1 file changed

+2
-1
lines changed
  • crates/bevy_mod_scripting_core/src/bindings/globals

1 file changed

+2
-1
lines changed

crates/bevy_mod_scripting_core/src/bindings/globals/core.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ use super::AppScriptGlobalsRegistry;
88
pub struct CoreScriptGlobalsPlugin;
99

1010
impl Plugin for CoreScriptGlobalsPlugin {
11-
fn build(&self, app: &mut bevy::app::App) {
11+
fn build(&self, _app: &mut bevy::app::App) {}
12+
fn finish(&self, app: &mut bevy::app::App) {
1213
let global_registry = app
1314
.world_mut()
1415
.get_resource_or_init::<AppScriptGlobalsRegistry>()

0 commit comments

Comments
 (0)