forked from GeyserMC/Geyser
Merge pull request #1 from rtm516/patch-2
Fix blank login causing error
This commit is contained in:
commit
33e9bab9cb
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue