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/disconnect.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/disconnect.rs')
| -rw-r--r-- | azalea-client/src/disconnect.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea-client/src/disconnect.rs b/azalea-client/src/disconnect.rs index 83870e69..9fd57e57 100644 --- a/azalea-client/src/disconnect.rs +++ b/azalea-client/src/disconnect.rs @@ -12,7 +12,7 @@ use azalea_ecs::{ }; use derive_more::Deref; -use crate::{client::JoinedClientBundle, LocalPlayer}; +use crate::{client::JoinedClientBundle, movement::send_position, LocalPlayer}; pub struct DisconnectPlugin; impl Plugin for DisconnectPlugin { @@ -20,7 +20,9 @@ impl Plugin for DisconnectPlugin { app.add_event::<DisconnectEvent>() .add_system_to_stage(CoreStage::PostUpdate, handle_disconnect) .add_tick_system( - update_read_packets_task_running_component.before(disconnect_on_read_packets_ended), + update_read_packets_task_running_component + .before(disconnect_on_read_packets_ended) + .before(send_position), ) .add_tick_system(disconnect_on_read_packets_ended); } |
