This commit is contained in:
parent
9ceebb2d93
commit
76541c7d05
1 changed files with 30 additions and 32 deletions
|
@ -248,8 +248,7 @@ public class Region {
|
||||||
perms_folder.mkdirs();
|
perms_folder.mkdirs();
|
||||||
}
|
}
|
||||||
ArrayList<File> perms = directory_utils.list_files_in_dir_recursive(perms_folder,((dir, name) -> name.endsWith(".json")));
|
ArrayList<File> perms = directory_utils.list_files_in_dir_recursive(perms_folder,((dir, name) -> name.endsWith(".json")));
|
||||||
if (perms!=null) {
|
System.out.println("[AREA] Trying to load %s perms.".replace("%s", String.valueOf(perms.size())));
|
||||||
System.out.println("[AREA] Trying to load %s perms.".replace("%s",String.valueOf(perms.size())));
|
|
||||||
for (File f : perms) {
|
for (File f : perms) {
|
||||||
JsonValue perm_json;
|
JsonValue perm_json;
|
||||||
try {
|
try {
|
||||||
|
@ -281,7 +280,6 @@ public class Region {
|
||||||
|
|
||||||
area.player_perms.add(perm);
|
area.player_perms.add(perm);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue