Fix resource-parsing issue

This commit is contained in:
Lukas Rieger (Blue) 2023-02-23 10:18:46 +01:00
parent f4c6adc685
commit cfa76e6451
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
1 changed files with 2 additions and 0 deletions

View File

@ -419,6 +419,8 @@ public class ResourcePack {
}
private static Stream<Path> walk(Path root) {
if (!Files.exists(root)) return Stream.empty();
if (Files.isRegularFile(root)) return Stream.of(root);
try {
return Files.walk(root);
} catch (IOException ex) {