mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Only pull data from the map once
This commit is contained in:
parent
0666403243
commit
64974d6340
1 changed files with 2 additions and 1 deletions
|
|
@ -213,7 +213,8 @@ public class GeyserExtensionLoader extends ExtensionLoader {
|
||||||
GeyserExtensionDescription description = this.extensionDescription(path);
|
GeyserExtensionDescription description = this.extensionDescription(path);
|
||||||
|
|
||||||
// Remove the old extension with the same ID if it exists
|
// Remove the old extension with the same ID if it exists
|
||||||
if (extensionFiles.containsKey(description.id())) {
|
Path oldExtensionFile = extensionFiles.get(description.id());
|
||||||
|
if (oldExtensionFile != null && Files.exists(oldExtensionFile)) {
|
||||||
Files.delete(extensionFiles.get(description.id()));
|
Files.delete(extensionFiles.get(description.id()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue