forked from mirror/BlueMap
load all model folders except item
This commit is contained in:
parent
45331b8103
commit
d9b6c526f8
@ -36,7 +36,6 @@
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.CompletionException;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@DebugDump
|
||||
@ -238,7 +237,7 @@ private void loadResources(Path root) throws IOException {
|
||||
list(root.resolve("assets"))
|
||||
.map(path -> path.resolve("models"))
|
||||
.flatMap(ResourcePack::list)
|
||||
.filter(path -> Pattern.matches("blocks?", path.getFileName().toString()))
|
||||
.filter(path -> !path.getFileName().toString().equals("item"))
|
||||
.filter(Files::isDirectory)
|
||||
.flatMap(ResourcePack::walk)
|
||||
.filter(path -> path.getFileName().toString().endsWith(".json"))
|
||||
|
Loading…
Reference in New Issue
Block a user