File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/main/java/com/dark/zewo2 Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 99import meteordevelopment .meteorclient .systems .modules .Category ;
1010import meteordevelopment .meteorclient .systems .modules .Modules ;
1111import net .minecraft .client .MinecraftClient ;
12+ import net .minecraft .client .session .Session ;
1213import org .slf4j .Logger ;
1314
1415public class Addon extends MeteorAddon {
@@ -77,10 +78,10 @@ public void onInitialize() {
7778// Hud.get().register(HudExample.INFO);
7879
7980 //for the sessionID login screen, so you can return to the account you started with
80- String accessed = MinecraftClient .getInstance ().getSession (). getSessionId (). replaceAll ( "token:" , "" );
81- BOOTSESSION = accessed . split ( ":" )[ 0 ] ;
82- BOOTUUID = accessed . split ( ":" )[ 1 ] ;
83- BOOTNAME = MinecraftClient . getInstance (). getSession () .getUsername ();
81+ Session bootsession = MinecraftClient .getInstance ().getSession ();
82+ BOOTSESSION = bootsession . getAccessToken () ;
83+ BOOTUUID = bootsession . getUuidOrNull (). toString () ;
84+ BOOTNAME = bootsession .getUsername ();
8485 }
8586
8687 @ Override
You can’t perform that action at this time.
0 commit comments