Skip to content

Commit 7f28888

Browse files
committed
Update MinecraftAuth
1 parent 8b0bb87 commit 7f28888

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

core/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ dependencies {
1616
api(libs.nimbus.jose.jwt)
1717
api(libs.java.websocket)
1818
api(libs.methanol)
19-
// api(libs.minecraftauth)
20-
api("com.github.RaphiMC:MinecraftAuth:479f20c88e")
19+
api(libs.minecraftauth)
2120
api(libs.bundles.protocol)
2221
api(libs.netty.transport.nethernet)
2322

core/src/main/java/com/rtm516/mcxboxbroadcast/core/SessionManagerCore.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -427,14 +427,9 @@ protected void setupNetherNet() {
427427
shutdownNetherNet();
428428

429429
long netherNetId = this.sessionInfo.getNetherNetId().longValue();
430-
String mcToken = getMCTokenHeader();
431430

432-
// Parse the MCToken JWT to extract the pmid
433-
Jwt parsedToken = Jwt.parse(mcToken.split(" ")[1]);
434-
String pmid = parsedToken.getPayload().getString("pmid");
435-
436-
this.sessionInfo.setPmsgId(pmid);
437-
this.signaling = new NetherNetXboxRpcSignaling(netherNetId, mcToken);
431+
this.signaling = new NetherNetXboxRpcSignaling(netherNetId, getMCTokenHeader());
432+
this.sessionInfo.setPmsgId(getAuthManager().getMinecraftSession().getCached().getParsedToken().getPayload().reqString("pmid"));
438433

439434
this.bossGroup = new NioEventLoopGroup(1);
440435
this.workerGroup = new NioEventLoopGroup();

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ log4j = "2.20.0"
99
jline = "3.23.0"
1010
terminalconsoleappender = "1.3.0"
1111
methanol = "1.7.0"
12-
minecraftauth = "4.1.2-SNAPSHOT"
12+
minecraftauth = "5.0.1-20260507.085226-5"
1313
gson = "2.11.0"
1414
sqlite = "3.50.2.0"
1515
webrtc = "1.0.3"

0 commit comments

Comments
 (0)