mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-21 01:37:13 +07:00
Fixed #8827
This commit is contained in:
parent
788fa66a91
commit
ce43af9091
@ -524,7 +524,9 @@ public class SettingsMenuDialog extends BaseDialog{
|
||||
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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user