Fix behavior for contained paths with non-vanilla PackTypes
This commit is contained in:
parent
9e95be14f3
commit
5958e10eff
|
|
@ -56,9 +56,7 @@ public abstract class ModFileResourcePackMixin {
|
||||||
this.rootListingByNamespaceAndType = new EnumMap<>(PackType.class);
|
this.rootListingByNamespaceAndType = new EnumMap<>(PackType.class);
|
||||||
this.containedPaths = new HashSet<>();
|
this.containedPaths = new HashSet<>();
|
||||||
for(PackType type : PackType.values()) {
|
for(PackType type : PackType.values()) {
|
||||||
if(!PackTypeHelper.isVanillaPackType(type))
|
Set<String> namespaces = PackTypeHelper.isVanillaPackType(type) ? this.namespacesByType.get(type) : this.getNamespaces(type);
|
||||||
continue;
|
|
||||||
Set<String> namespaces = this.namespacesByType.get(type);
|
|
||||||
HashMap<String, List<CachedResourcePath>> rootListingForNamespaces = new HashMap<>();
|
HashMap<String, List<CachedResourcePath>> rootListingForNamespaces = new HashMap<>();
|
||||||
for(String namespace : namespaces) {
|
for(String namespace : namespaces) {
|
||||||
try {
|
try {
|
||||||
|
|
@ -82,7 +80,8 @@ public abstract class ModFileResourcePackMixin {
|
||||||
rootListingForNamespaces.put(namespace, Collections.emptyList());
|
rootListingForNamespaces.put(namespace, Collections.emptyList());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.rootListingByNamespaceAndType.put(type, rootListingForNamespaces);
|
if(PackTypeHelper.isVanillaPackType(type))
|
||||||
|
this.rootListingByNamespaceAndType.put(type, rootListingForNamespaces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user