diff --git a/src/main/java/com/seibel/lod/core/handlers/LodDimensionFinder.java b/src/main/java/com/seibel/lod/core/handlers/LodDimensionFinder.java index 462448229..2bbadacc7 100644 --- a/src/main/java/com/seibel/lod/core/handlers/LodDimensionFinder.java +++ b/src/main/java/com/seibel/lod/core/handlers/LodDimensionFinder.java @@ -89,10 +89,8 @@ public class LodDimensionFinder public void AttemptToDetermineSubDimensionAsync(IDimensionTypeWrapper dimensionTypeWrapper) { // prevent multiple threads running at the same time - boolean v = determiningWorldFolder.getAndSet(true); - if (v) { + if (determiningWorldFolder.getAndSet(true)) return; - } // run asynchronously since this could take a while Thread thread = new Thread(() -> diff --git a/src/main/java/com/seibel/lod/core/handlers/LodDimensionOldFileStructureHandler.java b/src/main/java/com/seibel/lod/core/handlers/LodDimensionOldFileStructureHandler.java index 4e284e289..d4e8803c0 100644 --- a/src/main/java/com/seibel/lod/core/handlers/LodDimensionOldFileStructureHandler.java +++ b/src/main/java/com/seibel/lod/core/handlers/LodDimensionOldFileStructureHandler.java @@ -242,12 +242,15 @@ public class LodDimensionOldFileStructureHandler renameOldFileStructure(vertQual, OldDistanceGenerationMode.FULL); } - private String getFileBasePath() { - try { + private String getFileBasePath() + { + try + { return dimensionDataSaveFolder.getCanonicalPath() + File.separatorChar; - } catch (IOException e) { - ApiShared.LOGGER.warn("Unable to get the base save file path. One possible cause is that" - + " the process failed to read the current path location due to security configs."); + } + catch (IOException e) + { + ApiShared.LOGGER.warn("Unable to get the base save file path. Error: " + e.getMessage(), e); throw new RuntimeException("DistantHorizons Get Save File Path Failure"); } }