mirror of
https://github.com/craftaro/EpicSpawners.git
synced 2025-01-09 03:57:40 +08:00
fixed path appropriately for saves.
This commit is contained in:
parent
68185f8b26
commit
a31d827d84
@ -67,8 +67,8 @@ public class StorageYaml extends Storage {
|
||||
try {
|
||||
dataFile.getConfig().set("data", null); // Clear file
|
||||
|
||||
File data = new File(instance.getDataFolder() + "/data.yml");
|
||||
File dataClone = new File(instance.getDataFolder() + "/data-backup-" + System.currentTimeMillis() + ".yml");
|
||||
File data = new File(instance.getDataFolder(), "data.yml");
|
||||
File dataClone = new File(instance.getDataFolder(), "data-backup-" + System.currentTimeMillis() + ".yml");
|
||||
try {
|
||||
FileUtils.copyFile(data, dataClone);
|
||||
} catch (IOException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user