File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/main/java/de/blazemcworld/jsscripts Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ plugins {
22 id ' fabric-loom' version ' 1.0-SNAPSHOT'
33 id ' maven-publish'
44 id ' com.github.johnrengelman.shadow' version ' 7.1.2'
5+ id " org.graalvm.plugin.compiler" version " 0.1.0-alpha2"
56}
67
78import net.fabricmc.loom.task.RemapJarTask
@@ -13,6 +14,10 @@ repositories {
1314 mavenCentral()
1415}
1516
17+ graal {
18+ version " 22.3.0"
19+ }
20+
1621dependencies {
1722 minecraft " com.mojang:minecraft:${ project.minecraft_version} "
1823 mappings " net.fabricmc:yarn:${ project.yarn_mappings} :v2"
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ public Script(File file) throws Exception {
2525 ctx = Context .newBuilder ()
2626 .allowAllAccess (true )
2727 .logHandler (System .out )
28- .option ("engine.WarnInterpreterOnly" , "false" )
2928 .build ();
3029 Value bindings = ctx .getBindings ("js" );
3130 bindings .putMember ("script" , this );
You can’t perform that action at this time.
0 commit comments