aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/packet_handling
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-11-06 18:04:48 -0600
committermat <git@matdoes.dev>2023-11-06 18:04:57 -0600
commitee55453fbf9a799e23cbca60e384f6adf3d11acf (patch)
tree94ffd6b431ade8434d4ed4bf6dbf7126d60d5a2b /azalea-client/src/packet_handling
parent48b5d121718c98c3280e0945508324fc4527beec (diff)
downloadazalea-drasl-ee55453fbf9a799e23cbca60e384f6adf3d11acf.tar.xz
bevy 0.12
Diffstat (limited to 'azalea-client/src/packet_handling')
-rw-r--r--azalea-client/src/packet_handling/configuration.rs2
-rw-r--r--azalea-client/src/packet_handling/game.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/azalea-client/src/packet_handling/configuration.rs b/azalea-client/src/packet_handling/configuration.rs
index 7c295bdb..e26e3f3b 100644
--- a/azalea-client/src/packet_handling/configuration.rs
+++ b/azalea-client/src/packet_handling/configuration.rs
@@ -70,7 +70,7 @@ pub fn process_packet_events(ecs: &mut World) {
for PacketEvent {
entity: player_entity,
packet,
- } in events.iter()
+ } in events.read()
{
// we do this so `ecs` isn't borrowed for the whole loop
events_owned.push((*player_entity, packet.clone()));
diff --git a/azalea-client/src/packet_handling/game.rs b/azalea-client/src/packet_handling/game.rs
index a81852a6..a17dd13f 100644
--- a/azalea-client/src/packet_handling/game.rs
+++ b/azalea-client/src/packet_handling/game.rs
@@ -59,7 +59,7 @@ use crate::{
/// for PacketEvent {
/// entity,
/// packet,
-/// } in events.iter() {
+/// } in events.read() {
/// match packet {
/// ClientboundGamePacket::LevelParticles(p) => {
/// // ...
@@ -181,7 +181,7 @@ pub fn process_packet_events(ecs: &mut World) {
for PacketEvent {
entity: player_entity,
packet,
- } in events.iter()
+ } in events.read()
{
// we do this so `ecs` isn't borrowed for the whole loop
events_owned.push((*player_entity, packet.clone()));