feat: update rhino 1.7.15 -> 1.8.0

This commit is contained in:
Reider745
2025-01-04 17:20:43 +03:00
parent c69bfc6bb5
commit 28401f9667
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ dependencies {
// https://central.sonatype.com/artifact/com.google.code.gson/gson/versions
implementation group: 'com.google.code.gson', name: 'gson', version: '2.7'
// https://central.sonatype.com/artifact/org.mozilla/rhino/versions
implementation group: 'org.mozilla', name: 'rhino', version: '1.7.15'
implementation group: 'org.mozilla', name: 'rhino', version: '1.8.0'
// https://central.sonatype.com/artifact/org.json/json/versions
implementation group: 'org.json', name: 'json', version: '20231013'
@@ -118,7 +118,7 @@ public class ServerHooks {
return 'v' + Utils.getVersionByProtocol(ProtocolInfo.v1_16_200);
}
@Inject(type = TypeHook.AFTER, method = "<init>", className = "cn.nukkit.plugin.PluginClassLoader")
@Inject(type = TypeHook.AFTER_NOT_REPLACE, method = "<init>", className = "cn.nukkit.plugin.PluginClassLoader")
public static void newPluginClassLoader(PluginClassLoader self, JavaPluginLoader loader, ClassLoader parent, File file) {
RhinoOverrides.ClassLoaderPool.addClassLoader(self);
}