[FIX] Фикс PaperSpigot без модуля-патчера

This commit is contained in:
Gravit 2019-09-18 04:53:03 +07:00
parent 6a25d83fbe
commit a0e03ca979
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
7 changed files with 7 additions and 7 deletions

View file

@ -4,7 +4,7 @@
import java.util.EnumSet;
import java.util.Set;
public final class MinecraftProfileTexture {
public class MinecraftProfileTexture {
public enum Type {
SKIN,
CAPE,

View file

@ -14,7 +14,7 @@
// Used to bypass Launcher's class name obfuscation and access API
@LauncherAPI
public final class CompatBridge {
public class CompatBridge {
public static final int PROFILES_MAX_BATCH_SIZE = SerializeLimits.MAX_BATCH_SIZE;
public static CompatProfile checkServer(String username, String serverID) throws Exception {

View file

@ -8,7 +8,7 @@
import pro.gravit.utils.helper.SecurityHelper;
@LauncherAPI
public final class CompatProfile {
public class CompatProfile {
public static final String SKIN_URL_PROPERTY = Launcher.SKIN_URL_PROPERTY;
public static final String SKIN_DIGEST_PROPERTY = Launcher.SKIN_DIGEST_PROPERTY;
public static final String CLOAK_URL_PROPERTY = Launcher.CLOAK_URL_PROPERTY;

View file

@ -9,7 +9,7 @@
// Used by 1.6.4 and below versions
@LauncherAPI
public final class LegacyBridge {
public class LegacyBridge {
public static boolean checkServer(String username, String serverID) throws Exception {
LogHelper.debug("LegacyBridge.checkServer, Username: '%s', Server ID: %s", username, serverID);
return new CheckServerRequest(username, serverID).request() != null;

View file

@ -10,7 +10,7 @@
import pro.gravit.utils.helper.LogHelper;
public final class YggdrasilAuthenticationService implements AuthenticationService {
public class YggdrasilAuthenticationService implements AuthenticationService {
public YggdrasilAuthenticationService(Proxy proxy, String clientToken) {
LogHelper.debug("Patched AuthenticationService created: '%s'", clientToken);
}

View file

@ -14,7 +14,7 @@
import pro.gravit.utils.helper.LogHelper;
import pro.gravit.utils.helper.VerifyHelper;
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.com.mojang.authlib.busyWait", Long.toString(100L))),
VerifyHelper.L_NOT_NEGATIVE, "launcher.com.mojang.authlib.busyWait can't be < 0");

View file

@ -28,7 +28,7 @@
import pro.gravit.utils.helper.LogHelper;
import pro.gravit.utils.helper.SecurityHelper;
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.com.mojang.authlib.noTextures");