mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-18 08:35:45 +01:00
Use local variable
This commit is contained in:
parent
52d1e59108
commit
02d9fc1405
@ -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() },
|
||||
|
Loading…
Reference in New Issue
Block a user