3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-20 15:00:11 +01:00

Add back some comments

Dieser Commit ist enthalten in:
rtm516 2024-08-10 11:08:45 +01:00
Ursprung 30288cf98e
Commit 37a608444a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 331715B8B007C67A

Datei anzeigen

@ -169,12 +169,11 @@ public class GeyserExtensionLoader extends ExtensionLoader {
if (Files.isDirectory(updateDirectory)) {
// Get the current extensions and store them in a map
Map<String, Path> extensionFiles = new HashMap<>();
this.processExtensionsFolder(extensionsDirectory, (path, description) -> {
extensionFiles.put(description.id(), path);
}, (path, e) -> {
this.processExtensionsFolder(extensionsDirectory, (path, description) -> extensionFiles.put(description.id(), path), (path, e) -> {
// this file will throw again when we actually try to load extensions, and it will be handled there
});
// Perform the updates
this.processExtensionsFolder(updateDirectory, (path, description) -> {
// Remove the old extension with the same ID if it exists
Path oldExtensionFile = extensionFiles.get(description.id());