diff options
| author | mat <git@matdoes.dev> | 2025-03-19 21:35:47 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-03-19 21:35:47 +0000 |
| commit | 75efbc83fdc4a47f880e95259a339d41839af01a (patch) | |
| tree | ee5ddeb328fc126ef04adb8006f13513acb48d60 /azalea-client/src/plugins/tick_end.rs | |
| parent | ca2e0b3922da74799be812e5a534a20d611fce1a (diff) | |
| download | azalea-drasl-75efbc83fdc4a47f880e95259a339d41839af01a.tar.xz | |
make SendPacketEvent a bevy trigger
Diffstat (limited to 'azalea-client/src/plugins/tick_end.rs')
| -rw-r--r-- | azalea-client/src/plugins/tick_end.rs | 4 |
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)); } } |
