diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2023-12-04 23:42:49 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-04 23:42:49 -0600 |
| commit | 421d8ce2c837e3140d8f866e63032c277b31a413 (patch) | |
| tree | d5f06fbcd02c24c6b40edd22cbdfda4d6ed6a39f /azalea-client/src/events.rs | |
| parent | da4afa8ae3afec4cd59b9a19ae1e04818f1763a7 (diff) | |
| download | azalea-drasl-421d8ce2c837e3140d8f866e63032c277b31a413.tar.xz | |
Replace Bevy's FixedUpdate with Azalea's GameTick (#119)
* replace bevy FixedUpdate with azalea GameTick
* Update to Bevy 0.12.1
Diffstat (limited to 'azalea-client/src/events.rs')
| -rw-r--r-- | azalea-client/src/events.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea-client/src/events.rs b/azalea-client/src/events.rs index 9f2632a8..9a51992c 100644 --- a/azalea-client/src/events.rs +++ b/azalea-client/src/events.rs @@ -4,11 +4,12 @@ use std::sync::Arc; use azalea_chat::FormattedText; +use azalea_core::tick::GameTick; use azalea_protocol::packets::game::{ clientbound_player_combat_kill_packet::ClientboundPlayerCombatKillPacket, ClientboundGamePacket, }; use azalea_world::{InstanceName, MinecraftEntityId}; -use bevy_app::{App, FixedUpdate, Plugin, PreUpdate, Update}; +use bevy_app::{App, Plugin, PreUpdate, Update}; use bevy_ecs::{ component::Component, event::EventReader, @@ -128,7 +129,7 @@ impl Plugin for EventPlugin { PreUpdate, init_listener.before(crate::packet_handling::game::process_packet_events), ) - .add_systems(FixedUpdate, tick_listener); + .add_systems(GameTick, tick_listener); } } |
