mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2026-01-04 15:31:48 +00:00
Don't assume that BedrockData can't be null
This commit is contained in:
@@ -37,6 +37,12 @@ public class SpigotHandshakeHandler implements HandshakeHandler {
|
||||
|
||||
@Override
|
||||
public void handle(HandshakeData data) {
|
||||
// we never have to do anything when BedrockData is null.
|
||||
// BedrockData is null when something went wrong (e.g. invalid key / exception)
|
||||
if (data.getBedrockData() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
BedrockData bedrockData = data.getBedrockData();
|
||||
UUID correctUuid = data.getCorrectUniqueId();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user