Merge branch 'ichttt-fixDuplicateNamespace' into 1.13-pre
This commit is contained in:
commit
ea26434987
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue