mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Address review
This commit is contained in:
parent
ed795b25db
commit
12691ac4f9
2 changed files with 3 additions and 2 deletions
|
|
@ -39,6 +39,7 @@ import net.raphimc.minecraftauth.util.MicrosoftConstants;
|
||||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||||
import org.geysermc.geyser.GeyserImpl;
|
import org.geysermc.geyser.GeyserImpl;
|
||||||
import org.geysermc.geyser.GeyserLogger;
|
import org.geysermc.geyser.GeyserLogger;
|
||||||
|
import org.geysermc.geyser.util.MinecraftAuthLogger;
|
||||||
|
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
import java.util.concurrent.CompletionException;
|
import java.util.concurrent.CompletionException;
|
||||||
|
|
@ -127,7 +128,7 @@ public class PendingMicrosoftAuthentication {
|
||||||
return authentication = CompletableFuture.supplyAsync(() -> {
|
return authentication = CompletableFuture.supplyAsync(() -> {
|
||||||
try {
|
try {
|
||||||
StepFullJavaSession step = AUTH_FLOW.apply(offlineAccess, timeoutSec);
|
StepFullJavaSession step = AUTH_FLOW.apply(offlineAccess, timeoutSec);
|
||||||
return new StepChainResult(step, step.getFromInput(AUTH_CLIENT, new StepMsaDeviceCode.MsaDeviceCodeCallback(deviceCodeConsumer)));
|
return new StepChainResult(step, step.getFromInput(MinecraftAuthLogger.INSTANCE, AUTH_CLIENT, new StepMsaDeviceCode.MsaDeviceCodeCallback(deviceCodeConsumer)));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new CompletionException(e);
|
throw new CompletionException(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ websocket = "1.5.1"
|
||||||
protocol = "3.0.0.Beta2-20240704.153116-14"
|
protocol = "3.0.0.Beta2-20240704.153116-14"
|
||||||
raknet = "1.0.0.CR3-20240416.144209-1"
|
raknet = "1.0.0.CR3-20240416.144209-1"
|
||||||
minecraftauth = "4.0.3-SNAPSHOT"
|
minecraftauth = "4.0.3-SNAPSHOT"
|
||||||
mcprotocollib = "1.21-20240711.182247-12"
|
mcprotocollib = "1.21-20240718.102029-13"
|
||||||
adventure = "4.14.0"
|
adventure = "4.14.0"
|
||||||
adventure-platform = "4.3.0"
|
adventure-platform = "4.3.0"
|
||||||
junit = "5.9.2"
|
junit = "5.9.2"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue