diff options
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, |
