mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-12-02 15:33:28 +01:00
No more gross errors.
This commit is contained in:
parent
3b8c317476
commit
ed0498ca46
@ -108,7 +108,8 @@ public class StorageYaml extends Storage {
|
|||||||
File data = new File(plugin.getDataFolder(), "data.yml");
|
File data = new File(plugin.getDataFolder(), "data.yml");
|
||||||
File dataClone = new File(plugin.getDataFolder(), "data-backup-" + System.currentTimeMillis() + ".yml");
|
File dataClone = new File(plugin.getDataFolder(), "data-backup-" + System.currentTimeMillis() + ".yml");
|
||||||
try {
|
try {
|
||||||
copyFile(data, dataClone);
|
if (data.exists())
|
||||||
|
copyFile(data, dataClone);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user