Merge pull request #1 from rtm516/patch-2

Fix blank login causing error
This commit is contained in:
ForceUpdate1 2020-04-17 15:51:02 +02:00 committed by GitHub
commit 33e9bab9cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -300,7 +300,7 @@ public class GeyserSession implements CommandSender {
downstream.getSession().connect(); downstream.getSession().connect();
connector.addPlayer(this); connector.addPlayer(this);
} catch (InvalidCredentialsException e) { } catch (InvalidCredentialsException | IllegalArgumentException e) {
connector.getLogger().info("User '" + username + "' entered invalid login info, kicking."); connector.getLogger().info("User '" + username + "' entered invalid login info, kicking.");
disconnect("Invalid/incorrect login info"); disconnect("Invalid/incorrect login info");
} catch (RequestException ex) { } catch (RequestException ex) {