mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-27 02:59:06 +00:00
Writer fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user