From 805fb82a98403322dbb6bc2b2ad2d49d5e7c10fd Mon Sep 17 00:00:00 2001 From: core Date: Mon, 17 Jul 2023 21:25:50 -0400 Subject: [PATCH] make the bot more betterererererer --- src/bot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.rs b/src/bot.rs index 8b1ee20..21a71ac 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -196,7 +196,7 @@ async fn handle_packet(e: Event, config: &Arc>, reciever: &Receiv match p.as_ref() { ClientboundGamePacket::Disconnect(_) => { info!("Disconnected, restarting"); - return Ok(()); + return Err("Disconnected".into()); } _ => () }