Fix resource-parsing issue
This commit is contained in:
parent
f4c6adc685
commit
cfa76e6451
|
@ -419,6 +419,8 @@ public class ResourcePack {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Stream<Path> walk(Path root) {
|
private static Stream<Path> walk(Path root) {
|
||||||
|
if (!Files.exists(root)) return Stream.empty();
|
||||||
|
if (Files.isRegularFile(root)) return Stream.of(root);
|
||||||
try {
|
try {
|
||||||
return Files.walk(root);
|
return Files.walk(root);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
|
|
Loading…
Reference in New Issue