Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 00:23:03 +01:00
Fix NPE with ServerInfo being null for ping passthrough
Dieser Commit ist enthalten in:
Ursprung
145784b18d
Commit
7d14d079ef
@ -65,7 +65,7 @@ public class ConnectorServerEventHandler implements BedrockServerEventHandler {
|
|||||||
pong.setProtocolVersion(GeyserConnector.BEDROCK_1_14_PROTOCOL_VERSION);
|
pong.setProtocolVersion(GeyserConnector.BEDROCK_1_14_PROTOCOL_VERSION);
|
||||||
pong.setVersion(GeyserConnector.BEDROCK_PACKET_CODEC.getMinecraftVersion());
|
pong.setVersion(GeyserConnector.BEDROCK_PACKET_CODEC.getMinecraftVersion());
|
||||||
pong.setIpv4Port(config.getBedrock().getPort());
|
pong.setIpv4Port(config.getBedrock().getPort());
|
||||||
if (connector.getConfig().isPingPassthrough()) {
|
if (connector.getConfig().isPingPassthrough() && serverInfo != null) {
|
||||||
pong.setMotd(MessageUtils.getBedrockMessage(serverInfo.getDescription()));
|
pong.setMotd(MessageUtils.getBedrockMessage(serverInfo.getDescription()));
|
||||||
pong.setSubMotd(config.getBedrock().getMotd2());
|
pong.setSubMotd(config.getBedrock().getMotd2());
|
||||||
pong.setPlayerCount(serverInfo.getPlayerInfo().getOnlinePlayers());
|
pong.setPlayerCount(serverInfo.getPlayerInfo().getOnlinePlayers());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren