Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-07-06 13:28:06 +02:00
Check the local extension for the class before expanding the search
Dieser Commit ist enthalten in:
Ursprung
aa5e2e9cac
Commit
b48d4a0625
|
@ -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);
|
||||
|
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren