diff --git a/src/main/java/com/seibel/lod/core/handlers/LodDimensionFileHandler.java b/src/main/java/com/seibel/lod/core/handlers/LodDimensionFileHandler.java index 0f0297906..112f4f03d 100644 --- a/src/main/java/com/seibel/lod/core/handlers/LodDimensionFileHandler.java +++ b/src/main/java/com/seibel/lod/core/handlers/LodDimensionFileHandler.java @@ -285,15 +285,7 @@ public class LodDimensionFileHandler } // Now create a new temporary save file - File tempFile; - try { - tempFile = File.createTempFile(oldFile.getName(), TMP_FILE_EXTENSION); - } catch (IOException e) { - ClientApi.LOGGER.error("LOD file write error. Unable to create temp file for [" + oldFile + "] error [" + e.getMessage() + "]: "); - e.printStackTrace(); - continue; - } - tempFile.deleteOnExit(); // Mark it to be deleted on exit if any unexcepted terminations happen + File tempFile = new File(oldFile.getPath() + TMP_FILE_EXTENSION); try (XZCompressorOutputStream outputStream = new XZCompressorOutputStream(new FileOutputStream(tempFile), 3)) { // add the version of this file