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:
@@ -21,6 +21,7 @@ public class Scripts implements Disposable{
|
|||||||
context.setClassShutter(type -> (ClassAccess.allowedClassNames.contains(type) || type.startsWith("$Proxy") ||
|
context.setClassShutter(type -> (ClassAccess.allowedClassNames.contains(type) || type.startsWith("$Proxy") ||
|
||||||
type.startsWith("adapter") || type.contains("PrintStream") ||
|
type.startsWith("adapter") || type.contains("PrintStream") ||
|
||||||
type.startsWith("mindustry")) && !type.equals("mindustry.mod.ClassAccess"));
|
type.startsWith("mindustry")) && !type.equals("mindustry.mod.ClassAccess"));
|
||||||
|
context.getWrapFactory().setJavaPrimitiveWrap(false);
|
||||||
|
|
||||||
scope = new ImporterTopLevel(context);
|
scope = new ImporterTopLevel(context);
|
||||||
wrapper = Core.files.internal("scripts/wrapper.js").readString();
|
wrapper = Core.files.internal("scripts/wrapper.js").readString();
|
||||||
|
|||||||
Reference in New Issue
Block a user