fix cache folder not removed
This commit is contained in:
@@ -209,7 +209,7 @@ public class JsonCache {
|
|||||||
} catch (Exception | Error e) {
|
} catch (Exception | Error e) {
|
||||||
path = player.getName().toLowerCase();
|
path = player.getName().toLowerCase();
|
||||||
}
|
}
|
||||||
File file = new File(cacheDir, path + File.separator + "cache.json");
|
File file = new File(cacheDir, path);
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
Utils.purgeDirectory(file);
|
Utils.purgeDirectory(file);
|
||||||
if (!file.delete()) {
|
if (!file.delete()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user