Skip to content

Commit 78f01ca

Browse files
committed
Updated authlib API usage
1 parent 3f22dbc commit 78f01ca

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ repositories {
4848
}
4949

5050
dependencies {
51-
implementation "net.raphimc:ViaProxy:3.3.7"
51+
implementation "net.raphimc:ViaProxy:3.4.0-SNAPSHOT"
5252
}
5353

5454
processResources {

src/main/java/net/raphimc/authhook/AuthHookHttpServer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ protected void channelRead0(ChannelHandlerContext ctx, Object msg) {
8383
gameProfile.getProperties().forEach((key, value) -> {
8484
final JsonObject propertyObj = new JsonObject();
8585
propertyObj.addProperty("name", key);
86-
propertyObj.addProperty("value", value.getValue());
86+
propertyObj.addProperty("value", value.value());
8787
if (value.hasSignature()) {
88-
propertyObj.addProperty("signature", value.getSignature());
88+
propertyObj.addProperty("signature", value.signature());
8989
}
9090
propertiesArray.add(propertyObj);
9191
});

src/main/resources/viaproxy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ name: "AuthHook"
22
version: "${version}"
33
author: "RK_01 and Lenni0451"
44
main: "net.raphimc.authhook.AuthHook"
5-
min-version: "3.3.6"
5+
min-version: "3.4.0"

0 commit comments

Comments
 (0)