From 6f55946abd67352fa96d63144d087e1a6cf2594f Mon Sep 17 00:00:00 2001 From: acrylic-style Date: Fri, 10 Jun 2022 15:37:32 +0900 Subject: [PATCH] Add more netty for live compiler classpath --- .../common/util/tools/liveCompiler/JavaCompiler.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Blueberry-API/src/main/java/net/blueberrymc/common/util/tools/liveCompiler/JavaCompiler.java b/Blueberry-API/src/main/java/net/blueberrymc/common/util/tools/liveCompiler/JavaCompiler.java index 90b65045..293b993d 100644 --- a/Blueberry-API/src/main/java/net/blueberrymc/common/util/tools/liveCompiler/JavaCompiler.java +++ b/Blueberry-API/src/main/java/net/blueberrymc/common/util/tools/liveCompiler/JavaCompiler.java @@ -9,6 +9,9 @@ import com.mojang.brigadier.Message; import com.mojang.datafixers.types.Type; import io.netty.buffer.ByteBuf; +import io.netty.channel.Channel; +import io.netty.handler.codec.AsciiHeadersEncoder; +import io.netty.util.AttributeKey; import it.unimi.dsi.fastutil.floats.Float2FloatOpenHashMap; import net.blueberrymc.client.EarlyLoadingMessageManager; import net.blueberrymc.common.Blueberry; @@ -66,7 +69,10 @@ public class JavaCompiler { cp.add(ClasspathUtil.getClasspath(GameVersion.class)); // javabridge cp.add(ClasspathUtil.getClasspath(NotNull.class)); // jetbrains annotations cp.add(ClasspathUtil.getClasspath(IOUtils.class)); // commons-io - cp.add(ClasspathUtil.getClasspath(ByteBuf.class)); // netty + cp.add(ClasspathUtil.getClasspath(AttributeKey.class)); // netty-common + cp.add(ClasspathUtil.getClasspath(AsciiHeadersEncoder.class)); // netty-codec + cp.add(ClasspathUtil.getClasspath(Channel.class)); // netty-transport + cp.add(ClasspathUtil.getClasspath(ByteBuf.class)); // netty-buffer cp.add(ClasspathUtil.getClasspath(NativeUtil.class)); // NativeUtil cp.add(ClasspathUtil.getClasspath(Logger.class)); // Log4j2 Blueberry.safeRunOnClient(() -> new VoidSafeExecutor() {