diff options
author | Petr Ilin <hevav@hevav.dev> | 2022-02-07 01:16:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 01:16:25 +0300 |
commit | 000f091872d98e91e3d6c45a5ebfa86393a719da (patch) | |
tree | 3dc0642ef969ef55c06a970583b8417d50536670 /src/main | |
parent | 5221e9a993e5aec3fe3859bf0b3d00778fbc794c (diff) | |
download | LimboAuth-000f091872d98e91e3d6c45a5ebfa86393a719da.tar.gz LimboAuth-000f091872d98e91e3d6c45a5ebfa86393a719da.tar.bz2 LimboAuth-000f091872d98e91e3d6c45a5ebfa86393a719da.zip |
Fix error when UUID is empty
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/elytrium/limboauth/listener/AuthListener.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/elytrium/limboauth/listener/AuthListener.java b/src/main/java/net/elytrium/limboauth/listener/AuthListener.java index 59ab50d..1bed937 100644 --- a/src/main/java/net/elytrium/limboauth/listener/AuthListener.java +++ b/src/main/java/net/elytrium/limboauth/listener/AuthListener.java @@ -106,9 +106,9 @@ public class AuthListener { } catch (SQLException ex) { ex.printStackTrace(); } + } else { + event.setGameProfile(event.getOriginalProfile().withId(UUID.fromString(currentUuid))); } - - event.setGameProfile(event.getOriginalProfile().withId(UUID.fromString(currentUuid))); } } else if (event.isOnlineMode()) { try { |