mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Merge pull request #338 from theminecoder/fix/client-full-server-bug
Fix client not letting you connect to a full server
This commit is contained in:
commit
f920013d2b
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue