mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 06:51:30 -08:00
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:
parent
70e6e52eba
commit
d161ba442f
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue