diff --git a/Launcher/source-authlib/yggdrasil/YggdrasilAuthenticationService.java b/Launcher/source-authlib/yggdrasil/YggdrasilAuthenticationService.java index d30bfde..53ebe91 100644 --- a/Launcher/source-authlib/yggdrasil/YggdrasilAuthenticationService.java +++ b/Launcher/source-authlib/yggdrasil/YggdrasilAuthenticationService.java @@ -9,7 +9,7 @@ import com.mojang.authlib.minecraft.MinecraftSessionService; import launcher.helper.LogHelper; -public final class YggdrasilAuthenticationService implements AuthenticationService { +public class YggdrasilAuthenticationService implements AuthenticationService { @SuppressWarnings("UnusedParameters") public YggdrasilAuthenticationService(Proxy proxy, String clientToken) { LogHelper.debug("Patched AuthenticationService created: '%s'", clientToken); diff --git a/Launcher/source-authlib/yggdrasil/YggdrasilGameProfileRepository.java b/Launcher/source-authlib/yggdrasil/YggdrasilGameProfileRepository.java index 1232bad..8b8081f 100644 --- a/Launcher/source-authlib/yggdrasil/YggdrasilGameProfileRepository.java +++ b/Launcher/source-authlib/yggdrasil/YggdrasilGameProfileRepository.java @@ -12,7 +12,7 @@ import launcher.helper.VerifyHelper; import launcher.request.uuid.BatchProfileByUsernameRequest; -public final class YggdrasilGameProfileRepository implements GameProfileRepository { +public class YggdrasilGameProfileRepository implements GameProfileRepository { private static final long BUSY_WAIT_MS = VerifyHelper.verifyLong( Long.parseLong(System.getProperty("launcher.authlib.busyWait", Long.toString(100L))), VerifyHelper.L_NOT_NEGATIVE, "launcher.authlib.busyWait can't be < 0"); @@ -24,6 +24,10 @@ LogHelper.debug("Patched GameProfileRepository created"); } + public YggdrasilGameProfileRepository(YggdrasilAuthenticationService authenticationService) { + this(); + } + @Override public void findProfilesByNames(String[] usernames, Agent agent, ProfileLookupCallback callback) { int offset = 0; diff --git a/Launcher/source-authlib/yggdrasil/YggdrasilMinecraftSessionService.java b/Launcher/source-authlib/yggdrasil/YggdrasilMinecraftSessionService.java index b46d3b5..1bee302 100644 --- a/Launcher/source-authlib/yggdrasil/YggdrasilMinecraftSessionService.java +++ b/Launcher/source-authlib/yggdrasil/YggdrasilMinecraftSessionService.java @@ -28,7 +28,7 @@ import launcher.request.auth.JoinServerRequest; import launcher.request.uuid.ProfileByUUIDRequest; -public final class YggdrasilMinecraftSessionService extends BaseMinecraftSessionService { +public class YggdrasilMinecraftSessionService extends BaseMinecraftSessionService { public static final JsonParser JSON_PARSER = new JsonParser(); public static final boolean NO_TEXTURES = Boolean.parseBoolean("launcher.authlib.noTextures"); @@ -37,6 +37,10 @@ LogHelper.debug("Patched MinecraftSessionService created"); } + public YggdrasilMinecraftSessionService(YggdrasilAuthenticationService service) { + this((AuthenticationService) service); + } + @Override public GameProfile fillProfileProperties(GameProfile profile, boolean requireSecure) { // Verify has UUID