diff options
Diffstat (limited to 'bot/src')
| -rw-r--r-- | bot/src/main.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs index 92c1bc91..379b3af3 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -1,5 +1,4 @@ use azalea_client::{Account, Client, Event, MoveDirection}; -use azalea_protocol::packets::game::ClientboundGamePacket; use std::convert::TryInto; #[tokio::main] @@ -25,13 +24,7 @@ async fn handle_event(event: Event, mut bot: Client) -> anyhow::Result<()> { // } // bot.walk(MoveDirection::None); } - Event::Packet(packet) => { - if let ClientboundGamePacket::SetHealth(_) = *packet { - println!("got set health"); - bot.shutdown().await?; - panic!(); - } - } + Event::Packet(_packet) => {} _ => {} } |
