File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
BlueMapCore/src/main/java/de/bluecolored/bluemap/core/resources/resourcepack Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments