[FIX] FMLPatcher

This commit is contained in:
Gravit 2020-03-02 12:26:50 +07:00
parent 233e28a08a
commit ab9a19d3aa
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -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();