From 2c592090b9448203559e01326bc2c2d995b15d53 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Sat, 14 May 2022 00:59:25 -0700 Subject: de-minecraftify a lot of things + use mixin instead of reflection (#11) * de-minecraftify * use mixin instead of reflection * lol --- src/main/java/cc/polyfrost/oneconfig/lwjgl/plugin/LoadingPlugin.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/cc/polyfrost/oneconfig/lwjgl/plugin/LoadingPlugin.java') diff --git a/src/main/java/cc/polyfrost/oneconfig/lwjgl/plugin/LoadingPlugin.java b/src/main/java/cc/polyfrost/oneconfig/lwjgl/plugin/LoadingPlugin.java index b2ae799..6cd8911 100644 --- a/src/main/java/cc/polyfrost/oneconfig/lwjgl/plugin/LoadingPlugin.java +++ b/src/main/java/cc/polyfrost/oneconfig/lwjgl/plugin/LoadingPlugin.java @@ -1,5 +1,6 @@ package cc.polyfrost.oneconfig.lwjgl.plugin; +import cc.polyfrost.oneconfig.init.OneConfigInit; import net.minecraft.launchwrapper.Launch; import net.minecraft.launchwrapper.LaunchClassLoader; import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin; @@ -20,6 +21,7 @@ public class LoadingPlugin implements IFMLLoadingPlugin { f_exceptions.setAccessible(true); Set exceptions = (Set) f_exceptions.get(Launch.classLoader); exceptions.remove("org.lwjgl."); + OneConfigInit.initialize(new String[]{}); } catch (Exception e) { throw new RuntimeException("e"); } -- cgit