Use local variable

This commit is contained in:
Lukas Rieger (Blue) 2024-05-27 23:48:49 +02:00
parent 52d1e59108
commit 02d9fc1405
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -110,7 +110,7 @@ public synchronized static void loadAddon(Path jarFile, AddonInfo addonInfo) thr
// try to find entrypoint class and load jar with new classloader if needed
try {
entrypointClass = BlueMap.class.getClassLoader().loadClass(addonInfo.getEntrypoint());
entrypointClass = addonClassLoader.loadClass(addonInfo.getEntrypoint());
} catch (ClassNotFoundException e) {
addonClassLoader = new URLClassLoader(
new URL[]{ jarFile.toUri().toURL() },