diff options
Diffstat (limited to 'loader')
-rw-r--r-- | loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/loader/DGClassLoader.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/loader/DGClassLoader.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/loader/DGClassLoader.java index 4a902d8d..b7ead0f0 100644 --- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/loader/DGClassLoader.java +++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/loader/DGClassLoader.java @@ -1,5 +1,6 @@ package kr.syeyoung.dungeonsguide.launcher.loader; +import kr.syeyoung.dungeonsguide.launcher.Main; import kr.syeyoung.dungeonsguide.launcher.events.DGAwareEventSubscriptionTransformer; import net.minecraft.launchwrapper.LaunchClassLoader; import net.minecraftforge.fml.relauncher.ReflectionHelper; @@ -77,7 +78,7 @@ public abstract class DGClassLoader extends ClassLoader implements ByteStreamURL } if (res != null) { res = eventSubscriptionTransformer.transform(name, name, res); - return defineClass(name, res, 0, res.length); + return defineClass(name, res, 0, res.length, Main.class.getProtectionDomain()); } else { throw new ClassNotFoundException(name); } |