diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2023-03-07 14:14:36 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-07 14:14:36 -0600 |
| commit | 719379a8a76ab0685f2bd14bebe2f0cd1e97f06b (patch) | |
| tree | ce5d6c62bc36fb1d1ec31083bc8e81a0109c12df /azalea-client/src/chat.rs | |
| parent | bf4ff517890cad3ff4e36b4b78959504192e5374 (diff) | |
| download | azalea-drasl-719379a8a76ab0685f2bd14bebe2f0cd1e97f06b.tar.xz | |
Bevy 0.10 (#79)
* replace 0.9.1 with 0.10.0
* start migrating to bevy .10
* well it compiles
* doesn't immediately panic
* remove unused imports
* fmt
* delete azalea-ecs
* make RelativeEntityUpdate an EntityCommand
* fix a doc test
* explain what FixedUpdate does
Diffstat (limited to 'azalea-client/src/chat.rs')
| -rwxr-xr-x | azalea-client/src/chat.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/azalea-client/src/chat.rs b/azalea-client/src/chat.rs index e127f0d7..0ae0250a 100755 --- a/azalea-client/src/chat.rs +++ b/azalea-client/src/chat.rs @@ -1,18 +1,18 @@ //! Implementations of chat-related features. use azalea_chat::FormattedText; -use azalea_ecs::{ - app::{App, Plugin}, - entity::Entity, - event::{EventReader, EventWriter}, - schedule::IntoSystemDescriptor, -}; use azalea_protocol::packets::game::{ clientbound_player_chat_packet::ClientboundPlayerChatPacket, clientbound_system_chat_packet::ClientboundSystemChatPacket, serverbound_chat_command_packet::ServerboundChatCommandPacket, serverbound_chat_packet::{LastSeenMessagesUpdate, ServerboundChatPacket}, }; +use bevy_app::{App, Plugin}; +use bevy_ecs::{ + entity::Entity, + event::{EventReader, EventWriter}, + schedule::{IntoSystemConfig, IntoSystemConfigs}, +}; use std::{ sync::Arc, time::{SystemTime, UNIX_EPOCH}, @@ -159,12 +159,12 @@ impl Plugin for ChatPlugin { app.add_event::<SendChatEvent>() .add_event::<SendChatKindEvent>() .add_event::<ChatReceivedEvent>() - .add_system(handle_send_chat_event.label("handle_send_chat_event")) - .add_system( - handle_send_chat_kind_event - .label("handle_send_chat_kind_event") - .after(handle_send_chat_event) - .after(handle_send_packet_event), + .add_systems( + ( + handle_send_chat_event, + handle_send_chat_kind_event.after(handle_send_packet_event), + ) + .chain(), ); } } |
