Skip to content

Commit

Permalink
[Resource-loader] support mods with multiple root path
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Feb 10, 2024
1 parent 450251e commit 91914b5
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ public static void appendModResourcePacks(List<ResourcePack> packList) {
continue;
}

Path path = container.getRootPath();
ResourcePack pack = new ModNioResourcePack(container, path, null);
for (Path path : container.getRootPaths()) {
ResourcePack pack = new ModNioResourcePack(container, path, null);

if (!pack.getNamespaces().isEmpty()) {
packList.add(pack);
if (!pack.getNamespaces().isEmpty()) {
packList.add(pack);
}
}
}
}
Expand Down

0 comments on commit 91914b5

Please sign in to comment.