Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 13fc3ca

Browse files
committed
fix script
1 parent 70fd11f commit 13fc3ca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@
7979
</build>
8080

8181
<repositories>
82+
<repository>
83+
<id>central</id>
84+
<url>https://repo1.maven.org/maven2/</url>
85+
</repository>
8286
<repository>
8387
<id>jitpack</id>
8488
<url>https://jitpack.io</url>
@@ -96,10 +100,6 @@
96100
<id>codemc-repo</id>
97101
<url>https://repo.codemc.org/repository/maven-public/</url>
98102
</repository>
99-
<repository>
100-
<id>central</id>
101-
<url>https://repo1.maven.org/maven2/</url>
102-
</repository>
103103
<repository>
104104
<id>placeholderapi</id>
105105
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>

src/main/java/org/lins/mmmjjkx/rykenslimefuncustomizer/bulit_in/JavaScriptEval.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ private void reSetup() {
139139
jsEngine = GraalJSScriptEngine.create(
140140
null,
141141
Context.newBuilder("js")
142+
.hostClassLoader(ClassLoader.getSystemClassLoader())
142143
.allowAllAccess(true)
143144
.allowHostAccess(UNIVERSAL_HOST_ACCESS)
144145
.allowNativeAccess(false)
@@ -148,8 +149,7 @@ private void reSetup() {
148149
.allowValueSharing(true)
149150
.allowHostClassLoading(true)
150151
.allowIO(IOAccess.ALL)
151-
.allowHostClassLookup(s -> true)
152-
.hostClassLoader(ClassLoader.getSystemClassLoader()));
152+
.allowHostClassLookup(s -> true));
153153

154154
advancedSetup();
155155
}

0 commit comments

Comments
 (0)