From d5465cd28e43d48b3e913fdb1161eb907e4d80d0 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 25 Aug 2023 02:34:31 -0500 Subject: add basic pathfinding test --- azalea/examples/testbot.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'azalea/examples/testbot.rs') diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs index 3d566410..14800e9c 100644 --- a/azalea/examples/testbot.rs +++ b/azalea/examples/testbot.rs @@ -284,12 +284,11 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result< _ => {} } } - Event::Packet(packet) => match *packet { - ClientboundGamePacket::Login(_) => { + Event::Packet(packet) => { + if let ClientboundGamePacket::Login(_) = *packet { println!("login packet"); } - _ => {} - }, + } _ => {} } -- cgit v1.2.3