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 {
2
2
id ' fabric-loom' version ' 1.0-SNAPSHOT'
3
3
id ' maven-publish'
4
4
id ' com.github.johnrengelman.shadow' version ' 7.1.2'
5
+ id " org.graalvm.plugin.compiler" version " 0.1.0-alpha2"
5
6
}
6
7
7
8
import net.fabricmc.loom.task.RemapJarTask
@@ -13,6 +14,10 @@ repositories {
13
14
mavenCentral()
14
15
}
15
16
17
+ graal {
18
+ version " 22.3.0"
19
+ }
20
+
16
21
dependencies {
17
22
minecraft " com.mojang:minecraft:${ project.minecraft_version} "
18
23
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 {
25
25
ctx = Context .newBuilder ()
26
26
.allowAllAccess (true )
27
27
.logHandler (System .out )
28
- .option ("engine.WarnInterpreterOnly" , "false" )
29
28
.build ();
30
29
Value bindings = ctx .getBindings ("js" );
31
30
bindings .putMember ("script" , this );
You can’t perform that action at this time.
0 commit comments