diff --git a/src/lib/net/src/packets/incoming/keep_alive.rs b/src/lib/net/src/packets/incoming/keep_alive.rs index 12be026b..a68c3e56 100644 --- a/src/lib/net/src/packets/incoming/keep_alive.rs +++ b/src/lib/net/src/packets/incoming/keep_alive.rs @@ -3,7 +3,7 @@ use crate::packets::IncomingPacket; use crate::{NetResult, ServerState}; use ferrumc_macros::{packet, NetDecode}; use std::sync::Arc; -use tracing::info; +use tracing::debug; #[derive(NetDecode)] #[packet(packet_id = 0x18, state = "play")] @@ -15,10 +15,11 @@ impl IncomingPacket for IncomingKeepAlivePacket { async fn handle(self, conn_id: usize, state: Arc) -> NetResult<()> { let mut last_keep_alive = state.universe.get_mut::(conn_id)?; if self.id != last_keep_alive.id { - info!( + debug!( "Invalid keep alive packet received from {:?} with id {:?} (expected {:?})", conn_id, self.id, last_keep_alive.id ); + // TODO Kick player } else { *last_keep_alive = KeepAlive::from(self.id); }