diff --git a/crates/bevy_macro_utils/src/lib.rs b/crates/bevy_macro_utils/src/lib.rs index 0dd6a57037..15ce683f96 100644 --- a/crates/bevy_macro_utils/src/lib.rs +++ b/crates/bevy_macro_utils/src/lib.rs @@ -35,7 +35,9 @@ impl BevyManifest { const BEVY_INTERNAL: &str = "bevy_internal"; let find_in_deps = |deps: &DepsSet| -> Option { - let package = if let Some(dep) = deps.get(BEVY) { + let package = if let Some(dep) = deps.get(name) { + return Some(get_path(dep.package().unwrap_or(name))); + } else if let Some(dep) = deps.get(BEVY) { dep.package().unwrap_or(BEVY) } else if let Some(dep) = deps.get(BEVY_INTERNAL) { dep.package().unwrap_or(BEVY_INTERNAL)