Add Serverbound Confirm Teleportation

This commit is contained in:
Snowiiii committed 2024-08-03 13:25:28 +02:00
1 parent f111c7881c
commit a45a43397c
7 files changed
+81 -27

No files matched your search

+9 -1
View File
@@ -28,7 +28,7 @@ use std::io::Read;
use thiserror::Error;
mod client_packet;
mod player_packet;
pub mod player_packet;
use client_packet::ClientPacketProcessor;
@@ -185,6 +185,14 @@ impl Client {
packet.id
),
},
pumpkin_protocol::ConnectionState::Play => {
if let Some(player) = &mut self.player {
player.handle_packet(server, packet);
} else {
// should be impossible
self.kick("no player in play state?")
}
}
_ => log::error!("Invalid Connection state {:?}", self.connection_state),
}
}