Skip to content

Commit 9917e5d

Browse files
committed
Fix block-models not being loaded if they are directly in the root models folder
1 parent 75e987f commit 9917e5d

File tree

1 file changed

+0
-2
lines changed
  • BlueMapCore/src/main/java/de/bluecolored/bluemap/core/resources/resourcepack

1 file changed

+0
-2
lines changed

BlueMapCore/src/main/java/de/bluecolored/bluemap/core/resources/resourcepack/ResourcePack.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ private void loadResources(Path root) throws IOException {
238238
.map(path -> path.resolve("models"))
239239
.flatMap(ResourcePack::list)
240240
.filter(path -> !path.getFileName().toString().equals("item"))
241-
.filter(Files::isDirectory)
242241
.flatMap(ResourcePack::walk)
243242
.filter(path -> path.getFileName().toString().endsWith(".json"))
244243
.filter(Files::isRegularFile)
@@ -420,7 +419,6 @@ private static Stream<Path> list(Path root) {
420419
}
421420

422421
private static Stream<Path> walk(Path root) {
423-
if (!Files.isDirectory(root)) return Stream.empty();
424422
try {
425423
return Files.walk(root);
426424
} catch (IOException ex) {

0 commit comments

Comments
 (0)