File tree Expand file tree Collapse file tree
src/main/java/com/rtm516/mcxboxbroadcast/core Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ log4j = "2.20.0"
99jline = " 3.23.0"
1010terminalconsoleappender = " 1.3.0"
1111methanol = " 1.7.0"
12- minecraftauth = " 4.1.2-SNAPSHOT "
12+ minecraftauth = " 5.0.1-20260507.085226-5 "
1313gson = " 2.11.0"
1414sqlite = " 3.50.2.0"
1515webrtc = " 1.0.3"
You can’t perform that action at this time.
0 commit comments