Skip to content

Commit

Permalink
Fix loadDirectoryPack
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxuanchiadm committed Feb 23, 2024
1 parent cef0c86 commit 7836062
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ object BedrockAddonsLoader {
stream.setLevel(Deflater.BEST_COMPRESSION)
val files: Collection<File> = TreeSet(FileUtils.listFiles(directory, TrueFileFilter.INSTANCE, TrueFileFilter.INSTANCE))
for (file in files) {
val entry = ZipEntry(directory.toPath().relativize(file.toPath()).toString())
val entry = ZipEntry(directory.toPath().relativize(file.toPath()).toString().replace("\\", "/"))
.setCreationTime(time)
.setLastModifiedTime(time)
.setLastAccessTime(time)
Expand Down

0 comments on commit 7836062

Please sign in to comment.