Skip to content

Commit

Permalink
fix rp generation
Browse files Browse the repository at this point in the history
  • Loading branch information
iam4722202468 committed Mar 1, 2024
1 parent e3ba345 commit 9aee1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/worldseed/resourcepack/PackBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private static List<Model> recursiveFileSearch(Path path, Path subPath, Map<Stri
.filter(file -> file.getName().endsWith(".bbmodel"))
.map(entityModel -> {
try {
String pathName = subPath.resolve(entityModel.getName()).toString();
String pathName = subPath.toString().isEmpty() ? entityModel.getName() : subPath + "/" + entityModel.getName();
File stateFile = subPath.resolve(path).resolve(Path.of(entityModel.getName() + ".states")).toFile();

if (stateFile.exists()) {
Expand Down

0 comments on commit 9aee1d0

Please sign in to comment.