diff --git a/pumpkin/src/entity/player.rs b/pumpkin/src/entity/player.rs index 79e9f0325..15d49c156 100644 --- a/pumpkin/src/entity/player.rs +++ b/pumpkin/src/entity/player.rs @@ -24,8 +24,8 @@ use pumpkin_core::{ use pumpkin_entity::{entity_type::EntityType, EntityId}; use pumpkin_inventory::player::PlayerInventory; use pumpkin_macros::sound; -use pumpkin_protocol::server::play::SCookieResponse as SPCookieResponse; use pumpkin_protocol::server::play::{SClickContainer, SKeepAlive}; +use pumpkin_protocol::server::play::{SCookieResponse as SPCookieResponse, SPlayPingRequest}; use pumpkin_protocol::{ bytebuf::packet_id::Packet, client::play::{ @@ -766,6 +766,10 @@ impl Player { self.handle_player_command(SPlayerCommand::read(bytebuf)?) .await; } + SPlayPingRequest::PACKET_ID => { + self.handle_play_ping_request(SPlayPingRequest::read(bytebuf)?) + .await; + } SClickContainer::PACKET_ID => { self.handle_click_container(server, SClickContainer::read(bytebuf)?) .await?;