Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-04 23:30:17 +01:00
Fix NPE with MOTD (#1921)
Dieser Commit ist enthalten in:
Ursprung
25dd651b09
Commit
98b2a0e51b
@ -95,6 +95,13 @@ public class ConnectorServerEventHandler implements BedrockServerEventHandler {
|
||||
pong.setMaximumPlayerCount(config.getMaxPlayers());
|
||||
}
|
||||
|
||||
if (pong.getMotd() == null) {
|
||||
pong.setMotd("");
|
||||
}
|
||||
if (pong.getSubMotd() == null) {
|
||||
pong.setSubMotd("");
|
||||
}
|
||||
|
||||
// The ping will not appear if the MOTD + sub-MOTD is of a certain length.
|
||||
// We don't know why, though
|
||||
byte[] motdArray = pong.getMotd().getBytes(StandardCharsets.UTF_8);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren