3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-03 14:50:19 +01:00

Fixed player count and removed debug code

Dieser Commit ist enthalten in:
rtm516 2020-04-06 14:34:45 +01:00
Ursprung d4fa651427
Commit c114f49e84

Datei anzeigen

@ -143,7 +143,7 @@ public class GeyserConnector {
shuttingDown = true; shuttingDown = true;
if (players.size() >= 1) { if (players.size() >= 1) {
bootstrap.getGeyserLogger().info("Kicking " + players.size() + " players"); bootstrap.getGeyserLogger().info("Kicking " + (players.size() / 3) + " players");
for (GeyserSession playerSession : players.values()) { for (GeyserSession playerSession : players.values()) {
playerSession.disconnect("Geyser Proxy shutting down."); playerSession.disconnect("Geyser Proxy shutting down.");
@ -155,7 +155,6 @@ public class GeyserConnector {
// Simulate a long-running Job // Simulate a long-running Job
try { try {
while (true) { while (true) {
bootstrap.getGeyserLogger().info("Current entries: " + players.size());
if (players.size() == 0) { if (players.size() == 0) {
return; return;
} }