This commit is contained in:
Anuken
2020-01-20 14:13:20 -05:00
parent 85cf7e9d5c
commit b5258cd809
4 changed files with 9 additions and 3 deletions

View File

@@ -11,7 +11,8 @@ import org.mozilla.javascript.*;
public class Scripts implements Disposable{
private final Array<String> blacklist = Array.with("net", "files", "reflect", "javax", "rhino", "file", "channels", "jdk",
"runtime", "util.os", "rmi", "security", "org.", "sun.", "beans", "sql", "http", "exec", "compiler", "process", "system", ".awt", "socket");
"runtime", "util.os", "rmi", "security", "org.", "sun.", "beans", "sql", "http", "exec", "compiler", "process", "system",
".awt", "socket", "mod.scripts", "classloader");
private final Array<String> whitelist = Array.with("mindustry.net");
private final Context context;
private final String wrapper;