mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2024-11-29 12:45:18 +01:00
Fix not being able to remove minions that are there by default
This commit is contained in:
parent
2c0629b5ed
commit
77443db3ad
@ -38,7 +38,9 @@ public final class Minions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.failedToLoad.clear();
|
this.failedToLoad.clear();
|
||||||
com.artillexstudios.axminions.utils.FileUtils.copyFromResource("minions");
|
if (this.minionsDirectory.mkdir()) {
|
||||||
|
com.artillexstudios.axminions.utils.FileUtils.copyFromResource("minions");
|
||||||
|
}
|
||||||
Collection<File> files = FileUtils.listFiles(this.minionsDirectory, new String[]{"yaml", "yml"}, true);
|
Collection<File> files = FileUtils.listFiles(this.minionsDirectory, new String[]{"yaml", "yml"}, true);
|
||||||
|
|
||||||
LogUtils.debug("Parsing minion configs {}", String.join(", ", files.stream().map(File::getName).toList()));
|
LogUtils.debug("Parsing minion configs {}", String.join(", ", files.stream().map(File::getName).toList()));
|
||||||
|
Loading…
Reference in New Issue
Block a user