Removed unnecessary functional methods / Script cleanup

This commit is contained in:
Anuken 2020-05-04 00:01:45 -04:00
parent 834c15a808
commit 07a4b64b8a
4 changed files with 56 additions and 68 deletions

View file

@ -19,7 +19,7 @@ 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", "classloader", "oracle", "invoke");
private final Array<String> whitelist = Array.with("mindustry.net");
private final Array<String> whitelist = Array.with("mindustry.net", "netserver", "netclient", "com.sun.proxy.$proxy");
private final Context context;
private Scriptable scope;
private boolean errored;