Skip to content

Commit

Permalink
Ping/MOTD changes required for 1.16.210.59 (GeyserMC#1931)
Browse files Browse the repository at this point in the history
  • Loading branch information
Camotoy authored Feb 15, 2021
1 parent 98b2a0e commit f2550de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public BedrockPong onQuery(InetSocketAddress inetSocketAddress) {

BedrockPong pong = new BedrockPong();
pong.setEdition("MCPE");
pong.setGameType("Default");
pong.setGameType("Survival"); // Can only be Survival or Creative as of 1.16.210.59
pong.setNintendoLimited(false);
pong.setProtocolVersion(BedrockProtocol.DEFAULT_BEDROCK_CODEC.getProtocolVersion());
pong.setVersion(null); // Server tries to connect either way and it looks better
pong.setVersion(BedrockProtocol.DEFAULT_BEDROCK_CODEC.getMinecraftVersion()); // Required to not be empty as of 1.16.210.59
pong.setIpv4Port(config.getBedrock().getPort());

if (config.isPassthroughMotd() && pingInfo != null && pingInfo.getDescription() != null) {
Expand Down

0 comments on commit f2550de

Please sign in to comment.