Fix builtin mods being added as resource packs

This commit is contained in:
modmuss50 2019-08-28 20:00:17 +01:00
parent 27da48aaf2
commit d1f89c1d5e
2 changed files with 4 additions and 1 deletions

View file

@ -1,2 +1,2 @@
archivesBaseName = "fabric-resource-loader-v0"
version = getSubprojectVersion(project, "0.1.2")
version = getSubprojectVersion(project, "0.1.3")

View file

@ -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()) {