diff options
| author | mat <git@matdoes.dev> | 2023-05-12 23:20:23 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-05-12 23:20:23 -0500 |
| commit | e977391b0413aaa62ea725a53e4a78c287844f4c (patch) | |
| tree | 8ca64948b685610b81ae7f3f95153acf8a25c003 /azalea/examples | |
| parent | 741a1f65d669c83710e8c33082b120c189b28f1d (diff) | |
| download | azalea-drasl-e977391b0413aaa62ea725a53e4a78c287844f4c.tar.xz | |
auto respawn
Diffstat (limited to 'azalea/examples')
| -rw-r--r-- | azalea/examples/testbot.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs index 3fe9253c..ae6d293b 100644 --- a/azalea/examples/testbot.rs +++ b/azalea/examples/testbot.rs @@ -8,10 +8,10 @@ use azalea::entity::{EyeHeight, Position}; use azalea::interact::HitResultComponent; use azalea::inventory::ItemSlot; use azalea::pathfinder::BlockPosGoal; +use azalea::protocol::packets::game::serverbound_client_command_packet::ServerboundClientCommandPacket; +use azalea::protocol::packets::game::ClientboundGamePacket; use azalea::{prelude::*, swarm::prelude::*, BlockPos, GameProfileComponent, WalkDirection}; use azalea::{Account, Client, Event}; -use azalea_protocol::packets::game::serverbound_client_command_packet::ServerboundClientCommandPacket; -use azalea_protocol::packets::game::ClientboundGamePacket; use std::time::Duration; #[derive(Default, Clone, Component)] @@ -212,11 +212,6 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result< } } } - Event::Death(_) => { - bot.write_packet(ServerboundClientCommandPacket { - action: azalea_protocol::packets::game::serverbound_client_command_packet::Action::PerformRespawn, - }.get()); - } Event::Packet(packet) => match *packet { ClientboundGamePacket::Login(_) => { println!("login packet"); |
