From a4fddc1564924034ad553df15a622237fa751cd7 Mon Sep 17 00:00:00 2001 From: Zicklag Date: Sat, 30 Jan 2021 15:01:48 -0600 Subject: [PATCH] Fix Un-Renamed add_resource Compile Error --- crates/bevy_app/src/app_builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_app/src/app_builder.rs b/crates/bevy_app/src/app_builder.rs index 7233e94e79274..6f6e9dd789931 100644 --- a/crates/bevy_app/src/app_builder.rs +++ b/crates/bevy_app/src/app_builder.rs @@ -240,7 +240,7 @@ impl AppBuilder { // so we would need to be extremely certain this is correct if !self.resources().contains::() { let resource = R::from_resources(&self.resources()); - self.add_resource(resource); + self.insert_resource(resource); } self