Skip to content

Commit 017ce33

Browse files
committed
Remove filtering "item" folder from loading models
1 parent 60deb88 commit 017ce33

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ private void loadResources(Path root) throws IOException {
223223
CompletableFuture.runAsync(() -> {
224224
list(root.resolve("assets"))
225225
.map(path -> path.resolve("models"))
226-
.flatMap(ResourcePack::list)
227-
.filter(path -> !path.getFileName().toString().equals("item"))
226+
.filter(Files::isDirectory)
228227
.flatMap(ResourcePack::walk)
229228
.filter(path -> path.getFileName().toString().endsWith(".json"))
230229
.filter(Files::isRegularFile)

0 commit comments

Comments
 (0)