diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2023-07-09 19:11:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-09 19:11:29 -0500 |
| commit | d1afd02aa84e7b4450c1607277f078eb2a0f1bf3 (patch) | |
| tree | efea9bb7ef7f2064f7c963fd88f394fecec6231b /azalea-client/src/task_pool.rs | |
| parent | ea8a8fccb6eb39c97f6cb69e11db5f7d0886172e (diff) | |
| download | azalea-drasl-d1afd02aa84e7b4450c1607277f078eb2a0f1bf3.tar.xz | |
Update to Bevy 0.11 (#94)
* update to bevy 0.11
* clippy
---------
Co-authored-by: mat <git@matdoes.dev>
Diffstat (limited to 'azalea-client/src/task_pool.rs')
| -rw-r--r-- | azalea-client/src/task_pool.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/azalea-client/src/task_pool.rs b/azalea-client/src/task_pool.rs index 8df554f0..982c3396 100644 --- a/azalea-client/src/task_pool.rs +++ b/azalea-client/src/task_pool.rs @@ -2,11 +2,8 @@ use std::marker::PhantomData; -use bevy_app::{App, CoreSet, Plugin}; -use bevy_ecs::{ - schedule::IntoSystemConfig, - system::{NonSend, Resource}, -}; +use bevy_app::{App, Last, Plugin}; +use bevy_ecs::system::{NonSend, Resource}; use bevy_tasks::{ tick_global_task_pools_on_main_thread, AsyncComputeTaskPool, ComputeTaskPool, IoTaskPool, TaskPoolBuilder, @@ -27,7 +24,7 @@ impl Plugin for TaskPoolPlugin { self.task_pool_options.create_default_pools(); #[cfg(not(target_arch = "wasm32"))] - app.add_system(tick_global_task_pools.in_base_set(CoreSet::Last)); + app.add_systems(Last, tick_global_task_pools); } } |
