mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-30 12:19:10 +00:00
Check the local extension for the class before expanding the search
This commit is contained in:
@@ -82,15 +82,13 @@ public class GeyserExtensionClassLoader extends URLClassLoader {
|
||||
|
||||
Class<?> result = this.classes.get(name);
|
||||
if (result == null) {
|
||||
if (checkGlobal) {
|
||||
result = super.findClass(name);
|
||||
if (result == null && checkGlobal) {
|
||||
result = this.loader.classByName(name);
|
||||
}
|
||||
|
||||
if (result == null) {
|
||||
result = super.findClass(name);
|
||||
if (result != null) {
|
||||
this.loader.setClass(name, result);
|
||||
}
|
||||
if (result != null) {
|
||||
this.loader.setClass(name, result);
|
||||
}
|
||||
|
||||
this.classes.put(name, result);
|
||||
|
||||
Reference in New Issue
Block a user