diff options
author | syeyoung <cyong06@naver.com> | 2021-03-08 02:43:38 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-03-08 02:43:38 +0900 |
commit | 9b65a433d9738262023e082c9905b9b8a3c4d51b (patch) | |
tree | 3d53334e33eed5555fb79e8cd668be38c05f1d9a /src/main/java/kr/syeyoung/dungeonsguide/e.java | |
parent | ccef1574baa584e41824e5efdb6b6d0861e98ac5 (diff) | |
download | Skyblock-Dungeons-Guide-9b65a433d9738262023e082c9905b9b8a3c4d51b.tar.gz Skyblock-Dungeons-Guide-9b65a433d9738262023e082c9905b9b8a3c4d51b.tar.bz2 Skyblock-Dungeons-Guide-9b65a433d9738262023e082c9905b9b8a3c4d51b.zip |
FIXEDDDD
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/e.java')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/e.java | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/e.java b/src/main/java/kr/syeyoung/dungeonsguide/e.java index a8d76c49..3855a5d1 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/e.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/e.java @@ -1,5 +1,6 @@ package kr.syeyoung.dungeonsguide; +import com.google.common.collect.Sets; import kr.syeyoung.dungeonsguide.commands.*; import kr.syeyoung.dungeonsguide.config.Config; import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoomInfoRegistry; @@ -17,16 +18,21 @@ import kr.syeyoung.dungeonsguide.utils.AhUtils; import lombok.Getter; import net.minecraft.client.Minecraft; import net.minecraft.command.ICommand; +import net.minecraft.launchwrapper.LaunchClassLoader; +import net.minecraft.launchwrapper.LogWrapper; import net.minecraft.util.IChatComponent; import net.minecraftforge.client.ClientCommandHandler; import net.minecraftforge.client.event.ClientChatReceivedEvent; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.config.Configuration; +import net.minecraftforge.fml.common.FMLLog; import net.minecraftforge.fml.common.ObfuscationReflectionHelper; import net.minecraftforge.fml.common.ProgressManager; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; +import net.minecraftforge.fml.relauncher.ReflectionHelper; import org.apache.commons.io.IOUtils; +import org.apache.logging.log4j.LogManager; import javax.crypto.BadPaddingException; import javax.crypto.IllegalBlockSizeException; @@ -75,7 +81,16 @@ public class e implements c, CloseListener { public void init(FMLInitializationEvent event) { ProgressManager.ProgressBar progressbar = ProgressManager.push("DungeonsGuide", 4); - + try { + Set<String> invalid = ReflectionHelper.getPrivateValue(LaunchClassLoader.class, (LaunchClassLoader) a.class.getClassLoader(), "invalidClasses"); + ((LaunchClassLoader)a.class.getClassLoader()).clearNegativeEntries(Sets.newHashSet("org.slf4j.LoggerFactory")); + for (String s : invalid) { + System.out.println(s+" in invalid"); + } + invalid.clear(); + } catch (Throwable t) { + t.printStackTrace(); + } progressbar.step("Registering Events & Commands"); dungeonsGuide = this; @@ -110,8 +125,6 @@ public class e implements c, CloseListener { } Keybinds.register(); - - progressbar.step("Opening connection"); try { stompConnection = new StompClient(new URI(stompURL), authenticator.c(), this); |