mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-05 23:33:36 +00:00
common: Ignore directories when loading language files
This commit is contained in:
@@ -57,6 +57,9 @@ public class Translator {
|
||||
}
|
||||
|
||||
for (File langFile : langFiles) {
|
||||
if (!langFile.isFile()) {
|
||||
continue;
|
||||
}
|
||||
if (!langFile.getName().endsWith(".yml")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user