Skip to content

Commit

Permalink
Fixed #8827
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jul 23, 2023
1 parent 788fa66 commit ce43af9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/mindustry/ui/dialogs/SettingsMenuDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,9 @@ public void exportData(Fi file) throws IOException{
path = path.startsWith("/") ? path.substring(1) : path;
zos.putNextEntry(new ZipEntry(path));
if(!add.isDirectory()){
Streams.copy(add.read(), zos);
try(var stream = add.read()){
Streams.copy(stream, zos);
}
}
zos.closeEntry();
}
Expand Down

0 comments on commit ce43af9

Please sign in to comment.