From ab9a19d3aae87b7a0f17c1b4665f3421884814e2 Mon Sep 17 00:00:00 2001 From: Gravit Date: Mon, 2 Mar 2020 12:26:50 +0700 Subject: [PATCH] [FIX] FMLPatcher --- .../main/java/pro/gravit/launcher/client/ClientLauncher.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java index 42c85934..a432d646 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java +++ b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java @@ -14,6 +14,7 @@ import pro.gravit.launcher.managers.ClientGsonManager; import pro.gravit.launcher.managers.ClientHookManager; import pro.gravit.launcher.modules.events.PreConfigPhase; +import pro.gravit.launcher.patches.FMLPatcher; import pro.gravit.launcher.profiles.ClientProfile; import pro.gravit.launcher.profiles.PlayerProfile; import pro.gravit.launcher.request.Request; @@ -294,6 +295,7 @@ private static void launch(ClientProfile profile, Params params) throws Throwabl { LogHelper.info("ClassLoader URL: %s", u.toString()); } + FMLPatcher.apply(); MethodHandle mainMethod = MethodHandles.publicLookup().findStatic(mainClass, "main", MethodType.methodType(void.class, String[].class)).asFixedArity(); Launcher.LAUNCHED.set(true); JVMHelper.fullGC();