From 60d1fa50c32c202dd04895caa51172948a4760b6 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 27 Apr 2022 15:09:33 +0000 Subject: add player position packet --- azalea-client/src/connect.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'azalea-client/src') diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs index d8b47321..78370d7e 100755 --- a/azalea-client/src/connect.rs +++ b/azalea-client/src/connect.rs @@ -123,6 +123,10 @@ pub async fn join_server(address: &ServerAddress) -> Result<(), String> { GamePacket::ClientboundRecipePacket(p) => { println!("Got recipe packet {:?}", p); } + GamePacket::ClientboundPlayerPositionPacket(p) => { + // TODO: reply with teleport confirm + println!("Got player position packet {:?}", p); + } }, Err(e) => { panic!("Error: {:?}", e); -- cgit v1.2.3