aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/tick_end.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/plugins/tick_end.rs')
-rw-r--r--azalea-client/src/plugins/tick_end.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/plugins/tick_end.rs b/azalea-client/src/plugins/tick_end.rs
index c7737eb1..6ad924ee 100644
--- a/azalea-client/src/plugins/tick_end.rs
+++ b/azalea-client/src/plugins/tick_end.rs
@@ -28,9 +28,9 @@ impl Plugin for TickEndPlugin {
pub fn game_tick_packet(
query: Query<Entity, (With<LocalEntity>, With<InstanceName>)>,
- mut send_packets: EventWriter<SendPacketEvent>,
+ mut commands: Commands,
) {
for entity in query.iter() {
- send_packets.send(SendPacketEvent::new(entity, ServerboundClientTickEnd));
+ commands.trigger(SendPacketEvent::new(entity, ServerboundClientTickEnd));
}
}