mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Add back some comments
This commit is contained in:
parent
30288cf98e
commit
37a608444a
1 changed files with 2 additions and 3 deletions
|
@ -169,12 +169,11 @@ public class GeyserExtensionLoader extends ExtensionLoader {
|
||||||
if (Files.isDirectory(updateDirectory)) {
|
if (Files.isDirectory(updateDirectory)) {
|
||||||
// Get the current extensions and store them in a map
|
// Get the current extensions and store them in a map
|
||||||
Map<String, Path> extensionFiles = new HashMap<>();
|
Map<String, Path> extensionFiles = new HashMap<>();
|
||||||
this.processExtensionsFolder(extensionsDirectory, (path, description) -> {
|
this.processExtensionsFolder(extensionsDirectory, (path, description) -> extensionFiles.put(description.id(), path), (path, e) -> {
|
||||||
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
|
// 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) -> {
|
this.processExtensionsFolder(updateDirectory, (path, description) -> {
|
||||||
// Remove the old extension with the same ID if it exists
|
// Remove the old extension with the same ID if it exists
|
||||||
Path oldExtensionFile = extensionFiles.get(description.id());
|
Path oldExtensionFile = extensionFiles.get(description.id());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue