Flatten JAR source directory lookup

This commit is contained in:
SNDST00M: M.U.N.I.N 2021-10-01 13:41:06 +01:00
parent 1f77276037
commit bd6911afa6
No known key found for this signature in database
GPG Key ID: 0C7CE6F01FC333C5

View File

@ -79,7 +79,7 @@ public class LiveAtlasMain extends JavaPlugin {
try { try {
Path dynmapWebFolderPath = Paths.get(dynmap.getDataFolder().toURI()).resolve("web"); Path dynmapWebFolderPath = Paths.get(dynmap.getDataFolder().toURI()).resolve("web");
File sourceDirectory = Paths.get(this.getDataFolder().toURI()).resolve("resources").toFile(); File sourceDirectory = Paths.get(this.getDataFolder().toURI()).toFile();
File destinationDirectory = dynmapWebFolderPath.toFile(); File destinationDirectory = dynmapWebFolderPath.toFile();
copyDirectory(sourceDirectory, destinationDirectory); copyDirectory(sourceDirectory, destinationDirectory);
} catch (IOException e) { } catch (IOException e) {