Skip to content

Commit baede33

Browse files
author
games647
committed
Make Bedrock check nullsafe
If the UUID was not set by FloodGate or any other plugin, it's null by in BungeeCord Fixes #548
1 parent 01c9b55 commit baede33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/ConnectListener.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,11 @@ private boolean isBedrockPlayer(UUID correctedUUID) {
217217
// Floodgate will set a correct UUID at the beginning of the PreLoginEvent
218218
// and will cancel the online mode login for those players
219219
// Therefore we just ignore those
220-
if (floodgateHook == null) {
220+
if (floodgateHook == null || correctedUUID == null) {
221+
// Also ignore if not set by floodgate or any other plugin
221222
return false;
222223
}
224+
223225
return this.floodgateHook.isBedrockPlayer(correctedUUID);
224226
}
225227
}

0 commit comments

Comments
 (0)