mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 10:35:16 +01:00
Fix block-models not being loaded if they are directly in the root models folder
This commit is contained in:
parent
75e987f3c8
commit
9917e5dfa5
@ -238,7 +238,6 @@ private void loadResources(Path root) throws IOException {
|
||||
.map(path -> path.resolve("models"))
|
||||
.flatMap(ResourcePack::list)
|
||||
.filter(path -> !path.getFileName().toString().equals("item"))
|
||||
.filter(Files::isDirectory)
|
||||
.flatMap(ResourcePack::walk)
|
||||
.filter(path -> path.getFileName().toString().endsWith(".json"))
|
||||
.filter(Files::isRegularFile)
|
||||
@ -420,7 +419,6 @@ private static Stream<Path> list(Path root) {
|
||||
}
|
||||
|
||||
private static Stream<Path> walk(Path root) {
|
||||
if (!Files.isDirectory(root)) return Stream.empty();
|
||||
try {
|
||||
return Files.walk(root);
|
||||
} catch (IOException ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user