Skip to content

Commit cfa76e6

Browse files
committed
Fix resource-parsing issue
1 parent f4c6adc commit cfa76e6

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,8 @@ private static Stream<Path> list(Path root) {
419419
}
420420

421421
private static Stream<Path> walk(Path root) {
422+
if (!Files.exists(root)) return Stream.empty();
423+
if (Files.isRegularFile(root)) return Stream.of(root);
422424
try {
423425
return Files.walk(root);
424426
} catch (IOException ex) {

0 commit comments

Comments
 (0)