3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-07 16:50:12 +01:00

Ping/MOTD changes required for 1.16.210.59 (#1931)

Dieser Commit ist enthalten in:
Camotoy 2021-02-15 12:57:18 -05:00 committet von GitHub
Ursprung 98b2a0e51b
Commit f2550de633
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -69,10 +69,10 @@ public class ConnectorServerEventHandler implements BedrockServerEventHandler {
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) {