This commit is contained in:
Anuken
2023-07-23 15:59:19 -04:00
parent 788fa66a91
commit ce43af9091

View File

@ -524,7 +524,9 @@ public class SettingsMenuDialog extends BaseDialog{
path = path.startsWith("/") ? path.substring(1) : path; path = path.startsWith("/") ? path.substring(1) : path;
zos.putNextEntry(new ZipEntry(path)); zos.putNextEntry(new ZipEntry(path));
if(!add.isDirectory()){ if(!add.isDirectory()){
Streams.copy(add.read(), zos); try(var stream = add.read()){
Streams.copy(stream, zos);
}
} }
zos.closeEntry(); zos.closeEntry();
} }