From 0550b8ea206cb62d0f953bc695d2e6ac3a0865e1 Mon Sep 17 00:00:00 2001 From: yusshu Date: Tue, 26 Dec 2023 16:11:55 -0500 Subject: [PATCH] *: remove compiled class writing to file --- src/main/java/team/unnamed/mocha/runtime/MolangCompiler.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/team/unnamed/mocha/runtime/MolangCompiler.java b/src/main/java/team/unnamed/mocha/runtime/MolangCompiler.java index 21a78b8..75f1e4b 100644 --- a/src/main/java/team/unnamed/mocha/runtime/MolangCompiler.java +++ b/src/main/java/team/unnamed/mocha/runtime/MolangCompiler.java @@ -44,8 +44,6 @@ import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.lang.reflect.Parameter; -import java.nio.file.Files; -import java.nio.file.Paths; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -264,7 +262,7 @@ public MolangCompiler(final @NotNull ClassLoader classLoader, final @NotNull Glo } // write class - Files.write(Paths.get("test.class"), scriptCtClass.toBytecode()); + // Files.write(Paths.get("test.class"), scriptCtClass.toBytecode()); final Class compiledClass = classPool.toClass(scriptCtClass, getClass(), classLoader, null); // find the constructor with the requirements