From bb3394280f28716ca5168588025aa85dd1138e4d Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 16 Dec 2020 03:15:35 -0600 Subject: [PATCH] Update for latest Bevy changes. --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2b0641f..5ba95e9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ pub enum TtsEvent { struct TtsChannel(Receiver); -fn poll_callbacks_system(_: &mut World, resources: &mut Resources) { +fn poll_callbacks(_: &mut World, resources: &mut Resources) { let channel = resources.get_thread_local::().unwrap(); if let Ok(msg) = channel.0.try_recv() { let mut events = resources.get_mut::>().unwrap(); @@ -50,6 +50,6 @@ impl Plugin for TtsPlugin { app.add_event::() .add_thread_local_resource(TtsChannel(rx)) .add_resource(tts) - .add_system(poll_callbacks_system); + .add_system(poll_callbacks.system()); } }