fix cache folder not removed

This commit is contained in:
DNx5 2015-09-20 22:55:44 +07:00
parent 4b67cf961c
commit 5247b5aa2c

View File

@ -209,7 +209,7 @@ public class JsonCache {
} catch (Exception | Error e) {
path = player.getName().toLowerCase();
}
File file = new File(cacheDir, path + File.separator + "cache.json");
File file = new File(cacheDir, path);
if (file.exists()) {
Utils.purgeDirectory(file);
if (!file.delete()) {