Skip to content

Commit

Permalink
feat(bevy): Update to bevy 0.12.1 (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
SirHall committed Dec 5, 2023
1 parent 69c3a4a commit 6befa38
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ homepage = "https://github.com/zkat/big-brain"
[workspace]

[dependencies]
bevy = { version = "0.12.0", default-features = false }
bevy = { version = "0.12.1", default-features = false }
big-brain-derive = { version = "=0.18.0", path = "./derive" }

[dev-dependencies]
bevy = { version = "0.12.0", default-features = true }
bevy = { version = "0.12.1", default-features = true }
rand = { version = "0.8.5", features = ["small_rng"] }

[features]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ fn main() {

#### bevy version

The current version of `big-brain` is compatible with `bevy` 0.11.0.
The current version of `big-brain` is compatible with `bevy` 0.12.1.

#### Contributing

Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ use bevy::{ecs::schedule::ScheduleLabel, prelude::*, utils::intern::Interned};
/// use big_brain::prelude::*;
///
/// App::new()
/// .add_plugins(DefaultPlugins)
/// .add_plugin(BigBrainPlugin::new(Update))
/// .add_plugins((DefaultPlugins, BigBrainPlugin::new(Update)))
/// // ...insert entities and other systems.
/// .run();
#[derive(Debug, Clone, Reflect)]
Expand Down
2 changes: 1 addition & 1 deletion src/scorers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ impl ScorerBuilder for EvaluatingScorerBuilder {

fn build(&self, cmd: &mut Commands, scorer: Entity, actor: Entity) {
let inner_scorer = spawn_scorer(&*self.scorer, cmd, actor);
let scorers = vec![inner_scorer];
let scorers = [inner_scorer];
cmd.entity(scorer)
.push_children(&scorers[..])
.insert(EvaluatingScorer {
Expand Down

0 comments on commit 6befa38

Please sign in to comment.