mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
commit
95e70e5838
@ -244,8 +244,9 @@ public class BlockStorage {
|
|||||||
Config cfg = entry.getValue();
|
Config cfg = entry.getValue();
|
||||||
|
|
||||||
if (cfg.getKeys().isEmpty()) {
|
if (cfg.getKeys().isEmpty()) {
|
||||||
if (!cfg.getFile().delete()) {
|
File file = cfg.getFile();
|
||||||
Slimefun.getLogger().log(Level.WARNING, "Could not delete File: " + cfg.getFile().getName());
|
if (file.exists() && !file.delete()) {
|
||||||
|
Slimefun.getLogger().log(Level.WARNING, "Could not delete File: " + file.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user