3
0
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:
rtm516 2023-05-01 23:24:34 +01:00
Ursprung aa5e2e9cac
Commit b48d4a0625
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 331715B8B007C67A

Datei anzeigen

@ -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);