9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-27 02:59:06 +00:00

Writer fixes

This commit is contained in:
Daniel Mills
2020-12-29 06:14:18 -05:00
parent ee557d8191
commit f4eb0cfbcb
9 changed files with 417 additions and 16 deletions

View File

@@ -110,6 +110,11 @@ public final class MCAUtil {
* @throws IOException If something goes wrong during serialization.
* */
public static int write(MCAFile mcaFile, File file, boolean changeLastUpdate) throws IOException {
if(mcaFile == null)
{
return 0;
}
File to = file;
if (file.exists()) {
to = File.createTempFile(to.getName(), null);