From 1c3318d5fdb60f021cb8349069999d6d4db720a0 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Thu, 29 Apr 2021 20:16:38 +0200 Subject: [PATCH] Fix Version --- SpigotCore_Main/src/de/steamwar/authlib/AuthlibInjector.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");