diff --git a/src/main/java/com/cryptomorin/xseries/profiles/ProfilesCore.java b/src/main/java/com/cryptomorin/xseries/profiles/ProfilesCore.java index e41c7138..94c2063c 100644 --- a/src/main/java/com/cryptomorin/xseries/profiles/ProfilesCore.java +++ b/src/main/java/com/cryptomorin/xseries/profiles/ProfilesCore.java @@ -127,15 +127,15 @@ public final class ProfilesCore { cacheProfile = GameProfileCache.method("public void add(GameProfile profile);") .map(MinecraftMapping.OBFUSCATED, "a").reflect(); - // Some versions don't have the public getProxy() method. It's very inconsistent... + // Some versions don't have the public getProxy() method. It's very very inconsistent... proxy = (Proxy) MinecraftServer.field("protected final java.net.Proxy proxy;").getter() - .map(MinecraftMapping.OBFUSCATED, v(20, 5, "h") - .v(20, 3, "i") - .v(20, 1, "j") + .map(MinecraftMapping.OBFUSCATED, v(20, 5, "h").v(20, 3, "i") + .v(19, "j") + .v(18, 2, "n").v(18, "o") .v(17, "m") .v(14, "proxy") // v1.14 -> v1.16 .v(13, "c").orElse(/* v1.8 and v1.9 */ "e")) - .unreflect().invoke(minecraftServer); + .reflect().invoke(minecraftServer); } catch (Throwable throwable) { throw XReflection.throwCheckedException(throwable); }