Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 3fb0e1a

Browse files
committed
Implement keepalive
1 parent b7776e9 commit 3fb0e1a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

minecraft-server/src/entities/player.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ impl Handler<Player> {
363363
RequestPing { payload } => {
364364
self.send_packet(PlayClientbound::Ping { id: payload as i32 }).await;
365365
}
366+
KeepAlive { keep_alive_id } => {
367+
self.send_packet(PlayClientbound::KeepAlive { keep_alive_id }).await;
368+
}
366369
packet => warn!("Unsupported packet received: {packet:?}"),
367370
}
368371
}

0 commit comments

Comments
 (0)