diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2023-02-25 17:32:15 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-25 17:32:15 -0600 |
| commit | c1588ef66e844c067112ea880a54b4de9ec5a062 (patch) | |
| tree | 76e4f73a5f5392e1bef1f0560ed2f2c56b0d50fb /azalea-client/src/chat.rs | |
| parent | f5a8a59467a0aac3ae2f728961559217f1e1242d (diff) | |
| download | azalea-drasl-c1588ef66e844c067112ea880a54b4de9ec5a062.tar.xz | |
Fix system order ambiguities (#74)
* start fixing stuff where systems run in the wrong order
* fix ordering ambiguity
* add debugging guide
* some fixes
* fix panic for swarms
* fix some warnings
Diffstat (limited to 'azalea-client/src/chat.rs')
| -rwxr-xr-x | azalea-client/src/chat.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/azalea-client/src/chat.rs b/azalea-client/src/chat.rs index ac119f24..202cf47c 100755 --- a/azalea-client/src/chat.rs +++ b/azalea-client/src/chat.rs @@ -19,7 +19,10 @@ use std::{ }; use uuid::Uuid; -use crate::{client::Client, local_player::SendPacketEvent}; +use crate::{ + client::Client, + local_player::{handle_send_packet_event, SendPacketEvent}, +}; /// A chat packet, either a system message or a chat message. #[derive(Debug, Clone, PartialEq)] @@ -155,15 +158,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") - .after("packet"), - ) + .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_chat_event) + .after(handle_send_packet_event), ); } } |
