Skip to content

Commit a2899cc

Browse files
Fix trying to rename custom_consoles.yml to custom_desktops.yml when neither file exists
1 parent 22e8e31 commit a2899cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/me/eccentric_nz/TARDIS/TARDIS.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ public void onEnable() {
295295
}
296296
// rename custom_consoles -> custom_desktops
297297
File cc = new File(getDataFolder() + File.separator + "custom_desktops.yml");
298-
if (!cc.exists()) {
298+
File cd = new File(getDataFolder() + File.separator + "custom_desktops.yml");
299+
if (cc.exists() && !cd.exists()) {
299300
Path source = Paths.get(getDataFolder() + File.separator + "custom_consoles.yml");
300301
try {
301302
Files.move(source, source.resolveSibling("custom_desktops.yml"));

0 commit comments

Comments
 (0)