3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-27 08:30:12 +01:00

Fix bedrock clients not able to connect when the client thinks the server is full

Dieser Commit ist enthalten in:
theminecoder 2020-04-15 14:02:57 +10:00
Ursprung e67ed6dc8d
Commit 95e1eb2a63

Datei anzeigen

@ -80,6 +80,13 @@ public class ConnectorServerEventHandler implements BedrockServerEventHandler {
pong.setMotd(config.getBedrock().getMotd1()); pong.setMotd(config.getBedrock().getMotd1());
pong.setMotd(config.getBedrock().getMotd2()); pong.setMotd(config.getBedrock().getMotd2());
} }
//Bedrock will not even attempt a connection if the client thinks the server is full
//so we have to fake it not being full
if (pong.getPlayerCount() >= pong.getMaximumPlayerCount()) {
pong.setMaximumPlayerCount(pong.getPlayerCount() + 1);
}
return pong; return pong;
} }