Set primitive wrapping to false for scripts (#1302)

* Set primitive wrapping to false for scripts

* Added one newline cause why not
This commit is contained in:
KSean222 2020-01-03 05:07:38 +10:00 committed by Anuken
parent 70e6e52eba
commit d161ba442f

View file

@ -21,7 +21,8 @@ public class Scripts implements Disposable{
context.setClassShutter(type -> (ClassAccess.allowedClassNames.contains(type) || type.startsWith("$Proxy") ||
type.startsWith("adapter") || type.contains("PrintStream") ||
type.startsWith("mindustry")) && !type.equals("mindustry.mod.ClassAccess"));
context.getWrapFactory().setJavaPrimitiveWrap(false);
scope = new ImporterTopLevel(context);
wrapper = Core.files.internal("scripts/wrapper.js").readString();