diff --git a/SpigotCore_Main/src/de/steamwar/authlib/AuthlibInjector.java b/SpigotCore_Main/src/de/steamwar/authlib/AuthlibInjector.java index b96f71c..dcb6ea2 100644 --- a/SpigotCore_Main/src/de/steamwar/authlib/AuthlibInjector.java +++ b/SpigotCore_Main/src/de/steamwar/authlib/AuthlibInjector.java @@ -28,9 +28,10 @@ import java.lang.reflect.Field; public class AuthlibInjector { public static void inject() { - if(Core.getVersion() < 15) { + if(Core.getVersion() != 15) { return; } + try { Class minecraftServerClass = VersionedCallable.call(new VersionedCallable<>(() -> AuthlibInjector_15.getMinecraftClass(), 15)); Field repo = minecraftServerClass.getDeclaredField("gameProfileRepository");