Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 651b588

Browse files
committed
update methanol dependency
1 parent 5799c6d commit 651b588

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

common/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies {
2828
shadow(implementation("com.kohlschutter.junixsocket:junixsocket-common:2.10.1")!!)
2929
shadow(implementation("com.kohlschutter.junixsocket:junixsocket-native-common:2.10.1")!!)
3030

31-
shadow(implementation("com.github.mizosoft.methanol:methanol:1.7.0")!!)
31+
shadow(implementation("com.github.mizosoft.methanol:methanol:1.8.0")!!)
3232
shadow(implementation("io.nayuki:qrcodegen:1.8.0")!!)
3333
}
3434

common/src/main/java/io/github/axolotlclient/api/API.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import java.util.concurrent.TimeoutException;
3333
import java.util.stream.Collectors;
3434

35-
import com.github.mizosoft.methanol.Methanol;
3635
import io.github.axolotlclient.api.handlers.*;
3736
import io.github.axolotlclient.api.requests.AccountSettingsRequest;
3837
import io.github.axolotlclient.api.requests.GlobalDataRequest;
@@ -362,7 +361,7 @@ private void scheduleRestart(boolean immediate) {
362361
if (restartingFuture != null) {
363362
restartingFuture.cancel(true);
364363
}
365-
logger.info("Trying restart in "+(immediate ? "10 seconds" : "5 minutes."));
364+
logger.info("Trying restart in " + (immediate ? "10 seconds" : "5 minutes."));
366365
restartingFuture = CompletableFuture.runAsync(() -> {
367366
logDetailed("Restarting API session...");
368367
startup(account);
@@ -376,7 +375,7 @@ private void createSession() {
376375
logDetailed("Connecting to websocket..");
377376
URI gateway = Request.Route.GATEWAY.create().resolve();
378377
String uri = (gateway.getScheme().endsWith("s") ? "wss" : "ws") + gateway.toString().substring(gateway.getScheme().length());
379-
socket = ((Methanol) client).underlyingClient().newWebSocketBuilder().header("Authorization", token)
378+
socket = client.newWebSocketBuilder().header("Authorization", token)
380379
.buildAsync(URI.create(uri), new ClientEndpoint()).join();
381380
logDetailed("Socket connected");
382381
} catch (Exception e) {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ org.gradle.parallel=true
66
axolotlclient.modules.all=true
77

88
# Mod Properties
9-
version=3.1.0-beta.38
9+
version=3.1.0-beta.39
1010

1111
maven_group=io.github.axolotlclient
1212

0 commit comments

Comments
 (0)