From 3fb0e1a3e6806dde42e52ceca984869b83ab2d27 Mon Sep 17 00:00:00 2001 From: Mubelotix Date: Thu, 4 Jan 2024 16:04:25 +0100 Subject: [PATCH] Implement keepalive --- minecraft-server/src/entities/player.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/minecraft-server/src/entities/player.rs b/minecraft-server/src/entities/player.rs index 4fdeb5ce..9f2717b8 100644 --- a/minecraft-server/src/entities/player.rs +++ b/minecraft-server/src/entities/player.rs @@ -363,6 +363,9 @@ impl Handler { RequestPing { payload } => { self.send_packet(PlayClientbound::Ping { id: payload as i32 }).await; } + KeepAlive { keep_alive_id } => { + self.send_packet(PlayClientbound::KeepAlive { keep_alive_id }).await; + } packet => warn!("Unsupported packet received: {packet:?}"), } }