Skip to content

Commit 5b31c09

Browse files
committed
Fix system-dependant path separator
1 parent d48a714 commit 5b31c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ static Map<String, Map<String, List<String>>> getTags(File tagDir, Map<String, S
559559
directoryFile.eachFileRecurse(FileType.FILES, { file ->
560560
List<String> values = new JsonSlurper().parse(file).values
561561
Path relativePath = directoryFile.toPath().relativize(file.toPath())
562-
String name = FilenameUtils.removeExtension(relativePath.toString())
562+
String name = FilenameUtils.removeExtension(relativePath.toString()).replace(File.pathSeparator, "/")
563563
typeTags.put("minecraft:" + name, values)
564564
})
565565

0 commit comments

Comments
 (0)