Skip to content

Commit

Permalink
Fix nested Advancement JSON Files receiving incorrect Nested Name
Browse files Browse the repository at this point in the history
  • Loading branch information
ZockerAxel committed Dec 25, 2021
1 parent da4a8d9 commit ec9337b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private HashMap<NameKey, SerializedAdvancement> loadNamespace(String namespace,

for(File file : files) {
if(file.isDirectory()) {
advancements.putAll(loadNamespace(namespace, file.getName() + "/", file));
advancements.putAll(loadNamespace(namespace, path + file.getName() + "/", file));
} else if(file.isFile() && file.getName().endsWith(".json")) {
FileReader os = null;
try {
Expand Down

0 comments on commit ec9337b

Please sign in to comment.