Fix for #46
This commit is contained in:
parent
5ad8752e00
commit
0e80d66097
1 changed files with 3 additions and 0 deletions
|
@ -570,6 +570,9 @@ public class DataFixerAPI {
|
||||||
private static List<File> getAllPlayers(File dir) {
|
private static List<File> getAllPlayers(File dir) {
|
||||||
List<File> list = new ArrayList<>();
|
List<File> list = new ArrayList<>();
|
||||||
dir = new File(dir, "playerdata");
|
dir = new File(dir, "playerdata");
|
||||||
|
if (!dir.exists() || !dir.isDirectory()) {
|
||||||
|
return list;
|
||||||
|
}
|
||||||
for (File file : dir.listFiles()) {
|
for (File file : dir.listFiles()) {
|
||||||
if (file.isFile() && file.getName().endsWith(".dat")) {
|
if (file.isFile() && file.getName().endsWith(".dat")) {
|
||||||
list.add(file);
|
list.add(file);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue