fix method

when having relocated worlds folder this method would fail making warning appear
This commit is contained in:
dan28000 2025-04-21 20:45:20 +02:00
parent 0575cd85c8
commit 09cdd61a68

View File

@ -160,13 +160,9 @@ public class ServerBootSFG {
}
public static boolean enoughDiskSpace() {
File freeSpace = new File(Bukkit.getWorldContainer() + ".");
File freeSpace = Bukkit.getWorldContainer();
double gigabytes = freeSpace.getFreeSpace() / (1024.0 * 1024.0 * 1024.0);
if (gigabytes > 3){
return true;
} else {
return false;
}
return gigabytes > 3;
}
private static boolean checkJavac(String path) {