Skip to content

Commit

Permalink
23w32a
Browse files Browse the repository at this point in the history
  • Loading branch information
basaigh committed Aug 13, 2023
1 parent c33fba4 commit 7a86e7e
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ public void packetReceived(Session session, Packet packet) {
}
} else if (packet instanceof ServerboundConfigurationAcknowledgedPacket) {
protocol.setState(ProtocolState.CONFIGURATION);
} else if (packet instanceof ServerboundPingRequestPacket) {
session.send(new ClientboundPongResponsePacket(((ServerboundPingRequestPacket) packet).getPingTime()));
}
} else if (protocol.getState() == ProtocolState.CONFIGURATION) {
if (packet instanceof ServerboundFinishConfigurationPacket) {
Expand Down
Loading

0 comments on commit 7a86e7e

Please sign in to comment.