aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net
diff options
context:
space:
mode:
authorPetr Ilin <hevav@hevav.dev>2022-02-07 01:16:25 +0300
committerGitHub <noreply@github.com>2022-02-07 01:16:25 +0300
commit000f091872d98e91e3d6c45a5ebfa86393a719da (patch)
tree3dc0642ef969ef55c06a970583b8417d50536670 /src/main/java/net
parent5221e9a993e5aec3fe3859bf0b3d00778fbc794c (diff)
downloadLimboAuth-000f091872d98e91e3d6c45a5ebfa86393a719da.tar.gz
LimboAuth-000f091872d98e91e3d6c45a5ebfa86393a719da.tar.bz2
LimboAuth-000f091872d98e91e3d6c45a5ebfa86393a719da.zip
Fix error when UUID is empty
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/elytrium/limboauth/listener/AuthListener.java4
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 {