diff --git a/core/src/main/java/com/seibel/distanthorizons/core/dataObjects/fullData/sources/HighDetailIncompleteFullDataSource.java b/core/src/main/java/com/seibel/distanthorizons/core/dataObjects/fullData/sources/HighDetailIncompleteFullDataSource.java index ec579a6f9..9a3b3ef5e 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/dataObjects/fullData/sources/HighDetailIncompleteFullDataSource.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/dataObjects/fullData/sources/HighDetailIncompleteFullDataSource.java @@ -149,29 +149,27 @@ public class HighDetailIncompleteFullDataSource implements IIncompleteFullDataSo int dataDetailLevel = inputStream.readShort(); if (dataDetailLevel != dataFile.baseMetaData.dataDetailLevel) { - throw new IOException(LodUtil.formatLog("Data level mismatch: {} != {}", dataDetailLevel, dataFile.baseMetaData.dataDetailLevel)); + throw new IOException("Data level mismatch: ["+dataDetailLevel+"] != ["+dataFile.baseMetaData.dataDetailLevel+"]"); } // confirm that the detail level is correct int sparseDetail = inputStream.readShort(); if (sparseDetail != SPARSE_UNIT_DETAIL) { - throw new IOException((LodUtil.formatLog("Unexpected sparse detail level: {} != {}", - sparseDetail, SPARSE_UNIT_DETAIL))); + throw new IOException("Unexpected sparse detail level: ["+sparseDetail+"] != ["+SPARSE_UNIT_DETAIL+"]"); } // confirm the scale of the data points is correct int sectionSize = inputStream.readInt(); if (sectionSize != SECTION_SIZE) { - throw new IOException(LodUtil.formatLog( - "Section size mismatch: {} != {} (Currently only 1 section size is supported)", sectionSize, SECTION_SIZE)); + throw new IOException("Section size mismatch: ["+sectionSize+"] != ["+SECTION_SIZE+"] (Currently only 1 section size is supported)"); } int minY = inputStream.readInt(); if (minY != level.getMinY()) { - LOGGER.warn("Data minY mismatch: " + minY + " != " + level.getMinY() + ". Will ignore data's y level"); + LOGGER.warn("Data minY mismatch: [" + minY + "] != [" + level.getMinY() + "]. Will ignore data's y level"); } EDhApiWorldGenerationStep worldGenStep = EDhApiWorldGenerationStep.fromValue(inputStream.readByte()); diff --git a/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/FullDataMetaFile.java b/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/FullDataMetaFile.java index 9a2c9f74a..46e95c3ac 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/FullDataMetaFile.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/FullDataMetaFile.java @@ -299,7 +299,7 @@ public class FullDataMetaFile extends AbstractMetaDataContainerFile implements I } catch (Exception ex) { - LOGGER.error("Full Data Load error: "+ ex.getMessage(), ex); + LOGGER.error("Full Data Load error for pos ["+this.pos+"], error: "+ ex.getMessage(), ex); dataSourceLoadFuture.completeExceptionally(ex); dataSourceLoadFutureRef.set(null);