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

Commit

Permalink
Pong
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriTimoz committed Dec 25, 2023
1 parent dd312aa commit 3774ac3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion minecraft-server/src/entities/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,10 @@ impl Handler<Player> {
}
RequestPing { payload } => {
self.send_packet(PlayClientbound::Ping { id: payload as i32 }).await;
}
},
Pong { id } => {
self.send_packet(PlayClientbound::PingResponse { payload: id as i64 }).await;
},
packet => warn!("Unsupported packet received: {packet:?}"),
}
}
Expand Down

0 comments on commit 3774ac3

Please sign in to comment.