From 37a608444a9274b41952c02af24e5de6bf3caa09 Mon Sep 17 00:00:00 2001 From: rtm516 Date: Sat, 10 Aug 2024 11:08:45 +0100 Subject: [PATCH] Add back some comments --- .../org/geysermc/geyser/extension/GeyserExtensionLoader.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/geysermc/geyser/extension/GeyserExtensionLoader.java b/core/src/main/java/org/geysermc/geyser/extension/GeyserExtensionLoader.java index ed92d848a..801055c51 100644 --- a/core/src/main/java/org/geysermc/geyser/extension/GeyserExtensionLoader.java +++ b/core/src/main/java/org/geysermc/geyser/extension/GeyserExtensionLoader.java @@ -169,12 +169,11 @@ public class GeyserExtensionLoader extends ExtensionLoader { if (Files.isDirectory(updateDirectory)) { // Get the current extensions and store them in a map Map 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());