From 074b59cfdf0d302e9ecd2621da9bd85b3a8b8791 Mon Sep 17 00:00:00 2001 From: Seldom-SE <38388947+Seldom-SE@users.noreply.github.com> Date: Sun, 12 Nov 2023 14:25:31 -0700 Subject: [PATCH] Bevy 0.12 --- Cargo.toml | 12 ++++++------ src/trigger.rs | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7cce301..ba05301 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/trigger.rs b/src/trigger.rs index 3a14bc6..abd3268 100644 --- a/src/trigger.rs +++ b/src/trigger.rs @@ -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), ) @@ -304,7 +304,7 @@ impl OptionTrigger for EventTrigger { _: Entity, mut events: Self::Param<'_, '_>, ) -> Option<::Some> { - events.iter().next().cloned() + events.read().next().cloned() } }