Skip to content

Commit

Permalink
Bevy 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldom-SE committed Nov 12, 2023
1 parent 57fac48 commit 074b59c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ repository = "https://github.com/Seldom-SE/seldom_state"
leafwing_input = [ "dep:leafwing-input-manager" ]

[dependencies]
bevy = { version = "0.11", default-features = false }
either = "1"
leafwing-input-manager = { version = "0.10", default-features = false, optional = true }
seldom_fn_plugin = "0.4"
bevy = { version = "0.12.0", default-features = false }
either = "1.9"
leafwing-input-manager = { version = "0.11.1", default-features = false, optional = true }
seldom_fn_plugin = "0.5.0"

[dev-dependencies]
bevy = "0.11"
leafwing-input-manager = "0.10"
bevy = "0.12.0"
leafwing-input-manager = "0.11.1"

[[example]]
name = "input"
Expand Down
4 changes: 2 additions & 2 deletions src/trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use bevy::ecs::system::{ReadOnlySystemParam, SystemParam};
use crate::{prelude::*, set::StateSet};

pub(crate) fn trigger_plugin(app: &mut App) {
app.configure_set(
app.configure_sets(
PostUpdate,
StateSet::RemoveDoneMarkers.after(StateSet::Transition),
)
Expand Down Expand Up @@ -304,7 +304,7 @@ impl<T: Clone + Event> OptionTrigger for EventTrigger<T> {
_: Entity,
mut events: Self::Param<'_, '_>,
) -> Option<<Self as OptionTrigger>::Some> {
events.iter().next().cloned()
events.read().next().cloned()
}
}

Expand Down

0 comments on commit 074b59c

Please sign in to comment.