From 25e573cfbb7b673451a96c045e2468e64768c1ce Mon Sep 17 00:00:00 2001
From: Louis Capitanchik <contact@louiscap.co>
Date: Sat, 22 Jul 2023 03:09:03 +0100
Subject: [PATCH] Update required bevy version to 0.11

---
 Cargo.toml | 6 +++---
 README.md  | 1 +
 src/lib.rs | 4 ++--
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index 3aeea0f..7746f28 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "micro_bevy_world_utils"
-version = "0.2.1"
+version = "0.3.0"
 edition = "2021"
 license = "Apache-2.0"
 description = "Handy, reusable utilities for working with direct world access in a Bevy exclusive system"
@@ -11,5 +11,5 @@ repository = "https://lab.lcr.gr/microhacks/micro-bevy-world-utils"
 
 [dependencies]
 
-bevy_ecs = "0.10.1"
-bevy_hierarchy = "0.10.1"
+bevy_ecs = "0.11.0"
+bevy_hierarchy = "0.11.0"
diff --git a/README.md b/README.md
index bb1fd31..5e74b6b 100644
--- a/README.md
+++ b/README.md
@@ -35,5 +35,6 @@ the given entities, the result will be `None`
 
 | world_utiles ver | bevy ver |
 |------------------|----------|
+| 0.3              | 0.11     |
 | 0.2              | 0.10     |
 | 0.1              | 0.9      |
\ No newline at end of file
diff --git a/src/lib.rs b/src/lib.rs
index 1563794..01f0cc7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -240,8 +240,8 @@ pub fn get_any_left_parent_any_right_parent_entities<
 /// 	send_event(world, MyEventType { message: 1234 });
 /// }
 /// ```
-pub fn send_event<Event: Sync + Send + 'static>(world: &mut World, event: Event) {
-	SystemState::<(EventWriter<Event>)>::new(world)
+pub fn send_event<Event: bevy_ecs::event::Event + Sync + Send + 'static>(world: &mut World, event: Event) {
+	SystemState::<EventWriter<Event>>::new(world)
 		.get_mut(world)
 		.send(event);
 }
-- 
GitLab