diff options
| author | mat <git@matdoes.dev> | 2025-09-28 13:10:04 -0545 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-09-28 13:10:04 -0545 |
| commit | 2c8b7c5c2c9297273abfba8f7743f1bc25f166b1 (patch) | |
| tree | 3d3aded400100c136287fa59293ce26c61644d00 /azalea-client/src/plugins/connection.rs | |
| parent | e2ed19c1ed92f0dccc881d835d9ac6e0f7f834c0 (diff) | |
| download | azalea-drasl-2c8b7c5c2c9297273abfba8f7743f1bc25f166b1.tar.xz | |
upgrade bevy to 0.17.0-rc.2
Diffstat (limited to 'azalea-client/src/plugins/connection.rs')
| -rw-r--r-- | azalea-client/src/plugins/connection.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/azalea-client/src/plugins/connection.rs b/azalea-client/src/plugins/connection.rs index f439ac33..54966703 100644 --- a/azalea-client/src/plugins/connection.rs +++ b/azalea-client/src/plugins/connection.rs @@ -124,7 +124,7 @@ pub fn read_packets(ecs: &mut World) { } } - queued_packet_events.send_events(ecs); + queued_packet_events.write_messages(ecs); } fn poll_all_writer_tasks(mut conn_query: Query<&mut RawConnection>) { @@ -149,10 +149,10 @@ pub struct QueuedPacketEvents { game: Vec<ReceiveGamePacketEvent>, } impl QueuedPacketEvents { - fn send_events(&mut self, ecs: &mut World) { - ecs.send_event_batch(self.login.drain(..)); - ecs.send_event_batch(self.config.drain(..)); - ecs.send_event_batch(self.game.drain(..)); + fn write_messages(&mut self, ecs: &mut World) { + ecs.write_message_batch(self.login.drain(..)); + ecs.write_message_batch(self.config.drain(..)); + ecs.write_message_batch(self.game.drain(..)); } } |
