diff --git a/template_game/Cargo.toml b/template_game/Cargo.toml index a350b94..0104f0d 100644 --- a/template_game/Cargo.toml +++ b/template_game/Cargo.toml @@ -6,5 +6,5 @@ authors = ["Leafwing Studios"] edition = "2021" [dependencies] -bevy = { git = "https://github.com/bevyengine/bevy", rev="f7fbfaf", default-features = false} +bevy = { git = "https://github.com/bevyengine/bevy", rev="12c6fa7", default-features = false} template_lib ={ path = "../template_lib", version = "0.1"} \ No newline at end of file diff --git a/template_game/src/main.rs b/template_game/src/main.rs index 8cb33af..b014acc 100644 --- a/template_game/src/main.rs +++ b/template_game/src/main.rs @@ -19,7 +19,7 @@ fn main() { }), ..default() })) - .add_plugin(template_lib::player::PlayerPlugin) - .add_plugin(template_lib::graphics::GraphicsPlugin) + .add_plugins(template_lib::player::PlayerPlugin) + .add_plugins(template_lib::graphics::GraphicsPlugin) .run(); } diff --git a/template_lib/Cargo.toml b/template_lib/Cargo.toml index ad7e9dd..aaf26f0 100644 --- a/template_lib/Cargo.toml +++ b/template_lib/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT OR Apache 2.0" edition = "2021" [dependencies] -bevy = { git = "https://github.com/bevyengine/bevy", rev="f7fbfaf", default-features = false, features = [ +bevy = { git = "https://github.com/bevyengine/bevy", rev="12c6fa7", default-features = false, features = [ "bevy_asset", "bevy_core_pipeline", "bevy_gilrs", diff --git a/template_lib/src/graphics/lighting.rs b/template_lib/src/graphics/lighting.rs index 0c39f90..9be00c8 100644 --- a/template_lib/src/graphics/lighting.rs +++ b/template_lib/src/graphics/lighting.rs @@ -12,7 +12,7 @@ impl Plugin for LightingPlugin { brightness: 1., color: Color::WHITE, }) - .add_startup_system(spawn_sun); + .add_systems(Startup, spawn_sun); } } diff --git a/template_lib/src/graphics/mod.rs b/template_lib/src/graphics/mod.rs index 379e32b..9772c27 100644 --- a/template_lib/src/graphics/mod.rs +++ b/template_lib/src/graphics/mod.rs @@ -12,7 +12,7 @@ pub struct GraphicsPlugin; impl Plugin for GraphicsPlugin { fn build(&self, app: &mut App) { - app.add_plugin(LightingPlugin); + app.add_plugins(LightingPlugin); } } diff --git a/template_lib/src/player/camera.rs b/template_lib/src/player/camera.rs index c5b683c..1cff9b3 100644 --- a/template_lib/src/player/camera.rs +++ b/template_lib/src/player/camera.rs @@ -7,7 +7,7 @@ pub struct CameraPlugin; impl Plugin for CameraPlugin { fn build(&self, app: &mut App) { - app.add_startup_system(camera_setup); + app.add_systems(Startup, camera_setup); } } diff --git a/template_lib/src/player/mod.rs b/template_lib/src/player/mod.rs index 4217d52..38d7385 100644 --- a/template_lib/src/player/mod.rs +++ b/template_lib/src/player/mod.rs @@ -8,6 +8,6 @@ pub struct PlayerPlugin; impl Plugin for PlayerPlugin { fn build(&self, app: &mut App) { - app.add_plugin(camera::CameraPlugin); + app.add_plugins(camera::CameraPlugin); } }