Merge branch 'ichttt-fixDuplicateNamespace' into 1.13-pre

This commit is contained in:
cpw 2019-01-26 17:37:06 -05:00
commit ea26434987
No known key found for this signature in database
GPG key ID: 8EB3DF749553B1B7

View file

@ -108,6 +108,7 @@ public class ModFileResourcePack extends AbstractResourcePack
.map(path -> root.relativize(path.toAbsolutePath()))
.filter(path -> path.getNameCount() > 0) // skip the root entry
.map(p->p.toString().replaceAll("/$","")) // remove the trailing slash, if present
.filter(s -> !s.isEmpty()) //filter empty strings, otherwise empty strings default to minecraft in ResourceLocations
.collect(Collectors.toSet());
}
catch (IOException e)