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:
parent
6f115eef52
commit
7437d0dd77
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue