From 18771386c0d018fc7025d678c4ac44fabd2677db Mon Sep 17 00:00:00 2001 From: jglrxavpok Date: Sat, 3 Jul 2021 18:52:21 +0200 Subject: [PATCH] Slightly less restrictive package protection in MinestomRootClassLoader. Should fix issue with Configurate not loading. --- .../selfmodification/MinestomRootClassLoader.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/minestom/server/extras/selfmodification/MinestomRootClassLoader.java b/src/main/java/net/minestom/server/extras/selfmodification/MinestomRootClassLoader.java index 98c1d56e8..b7dd8288d 100644 --- a/src/main/java/net/minestom/server/extras/selfmodification/MinestomRootClassLoader.java +++ b/src/main/java/net/minestom/server/extras/selfmodification/MinestomRootClassLoader.java @@ -42,12 +42,16 @@ public class MinestomRootClassLoader extends HierarchyClassLoader { }; public final Set protectedPackages = new HashSet<>() { { - add("com.google"); + add("com.google.j2objc"); + add("com.google.common"); // guava + add("com.google.errorprone"); + add("com.google.gson"); add("com.mojang"); add("org.objectweb.asm"); add("org.slf4j"); - add("org.apache"); - add("org.spongepowered"); + add("org.apache.logging"); + add("org.spongepowered.asm"); // Mixin + add("org.spongepowered.tools"); // Mixin add("net.minestom.server.extras.selfmodification"); add("org.jboss.shrinkwrap.resolver"); add("kotlin");