Potentially fix #34 (Replace "\" in file paths with File.separatorChar to allow for use on Linux)

I can't currently test if this fixed the problem since I don't have a Linux install to test on.
This commit is contained in:
James Seibel
2021-06-27 13:12:38 -05:00
parent d5ec17551e
commit 46e65704d7
3 changed files with 13 additions and 12 deletions
@@ -20,7 +20,7 @@ import com.seibel.lod.proxy.ClientProxy;
* to file.
*
* @author James Seibel
* @version 6-13-2021
* @version 6-27-2021
*/
public class LodDimensionFileHandler
{
@@ -332,7 +332,7 @@ public class LodDimensionFileHandler
// ".\Super Flat\DIM-1\data"
// or
// ".\Super Flat\data"
return dimensionDataSaveFolder.getCanonicalPath() + "\\" +
return dimensionDataSaveFolder.getCanonicalPath() + File.separatorChar +
FILE_NAME_PREFIX + "." + detail.toString() + "." + regionX + "." + regionZ + FILE_EXTENSION;
}
catch(IOException e)