mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fix BlockStoreConversion bug on folder check
If dataDir.exists() is true, dataDir.isDirectory() will always also be true. You probably wanted to check whether it is a folder. This bug could lead to a critical bug when a file with the name of the folder exists.
This commit is contained in:
parent
3c272a3e31
commit
bffabb4a05
@ -75,7 +75,7 @@ public class BlockStoreConversionMain implements Runnable {
|
||||
public void softStop() {
|
||||
stop();
|
||||
|
||||
if (this.dataDir.exists() || this.dataDir.isDirectory()) {
|
||||
if (this.dataDir.exists() && this.dataDir.isDirectory()) {
|
||||
start();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user