aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples/testbot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/examples/testbot.rs')
-rw-r--r--azalea/examples/testbot.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs
index 3fe9253c..1774d005 100644
--- a/azalea/examples/testbot.rs
+++ b/azalea/examples/testbot.rs
@@ -8,10 +8,9 @@ use azalea::entity::{EyeHeight, Position};
use azalea::interact::HitResultComponent;
use azalea::inventory::ItemSlot;
use azalea::pathfinder::BlockPosGoal;
+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 +211,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");