Skip to content

Commit

Permalink
[Resource-loader] support mods with multiple root path (#157)
Browse files Browse the repository at this point in the history
* [Resource-loader] support mods with multiple root path

* Bump resource-loader-v1 version
  • Loading branch information
thecatcore committed Feb 11, 2024
1 parent 6be689d commit 07a538d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ legacy-fabric-networking-api-v1.version = 2.0.0
legacy-fabric-permissions-api-v1.version = 1.0.1
legacy-fabric-registry-sync-api-v1.version = 2.1.0
legacy-fabric-rendering-api-v1.version = 1.0.0
legacy-fabric-resource-loader-v1.version = 2.1.0
legacy-fabric-resource-loader-v1.version = 2.1.1
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 07a538d

Please sign in to comment.