forked from FabricMC/fabric
Fix builtin mods being added as resource packs
This commit is contained in:
parent
27da48aaf2
commit
d1f89c1d5e
2 changed files with 4 additions and 1 deletions
|
@ -1,2 +1,2 @@
|
|||
archivesBaseName = "fabric-resource-loader-v0"
|
||||
version = getSubprojectVersion(project, "0.1.2")
|
||||
version = getSubprojectVersion(project, "0.1.3")
|
||||
|
|
|
@ -40,6 +40,9 @@ public final class ModResourcePackUtil {
|
|||
|
||||
public static void appendModResourcePacks(List<ResourcePack> packList, ResourceType type) {
|
||||
for (ModContainer container : FabricLoader.getInstance().getAllMods()) {
|
||||
if(container.getMetadata().getType().equals("builtin")){
|
||||
continue;
|
||||
}
|
||||
Path path = container.getRootPath();
|
||||
ResourcePack pack = new ModNioResourcePack(container.getMetadata(), path, null);
|
||||
if (!pack.getNamespaces(type).isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue