add class to eval context

i did the same in chomens bot and it works great because you can import any class from eval,..,,
This commit is contained in:
Chayapak 2023-05-12 15:41:50 +07:00
parent 6f115eef52
commit 7437d0dd77

View file

@ -36,6 +36,7 @@ public class EvalCommand {
globals.set("client", CoerceJavaToLua.coerce(MinecraftClient.getInstance()));
globals.set("context", CoerceJavaToLua.coerce(context));
globals.set("class", CoerceJavaToLua.coerce(Class.class));
LuaValue chunk = globals.load(code);