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/respawn.rs | |
| parent | ca2e0b3922da74799be812e5a534a20d611fce1a (diff) | |
| download | azalea-drasl-75efbc83fdc4a47f880e95259a339d41839af01a.tar.xz | |
make SendPacketEvent a bevy trigger
Diffstat (limited to 'azalea-client/src/plugins/respawn.rs')
| -rw-r--r-- | azalea-client/src/plugins/respawn.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/azalea-client/src/plugins/respawn.rs b/azalea-client/src/plugins/respawn.rs index 5797406b..24479805 100644 --- a/azalea-client/src/plugins/respawn.rs +++ b/azalea-client/src/plugins/respawn.rs @@ -20,12 +20,9 @@ impl Plugin for RespawnPlugin { } } -pub fn perform_respawn( - mut events: EventReader<PerformRespawnEvent>, - mut send_packets: EventWriter<SendPacketEvent>, -) { +pub fn perform_respawn(mut events: EventReader<PerformRespawnEvent>, mut commands: Commands) { for event in events.read() { - send_packets.send(SendPacketEvent::new( + commands.trigger(SendPacketEvent::new( event.entity, ServerboundClientCommand { action: s_client_command::Action::PerformRespawn, |
