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

Commit

Permalink
Implement keepalive
Browse files Browse the repository at this point in the history
  • Loading branch information
Mubelotix committed Jan 4, 2024
1 parent b7776e9 commit 3fb0e1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions minecraft-server/src/entities/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ impl Handler<Player> {
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:?}"),
}
}
Expand Down

0 comments on commit 3fb0e1a

Please sign in to comment.