diff --git a/src/main/java/com/drtshock/playervaults/Conversion.java b/src/main/java/com/drtshock/playervaults/Conversion.java index b0e4919..0089019 100644 --- a/src/main/java/com/drtshock/playervaults/Conversion.java +++ b/src/main/java/com/drtshock/playervaults/Conversion.java @@ -1,3 +1,21 @@ +/* + * PlayerVaultsX + * Copyright (C) 2013 Trent Hensler + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.drtshock.playervaults; import com.drtshock.playervaults.vaultmanagement.CardboardBoxSerialization; @@ -156,15 +174,15 @@ class Conversion { File oldDir; boolean recent; - if (oldVaults.exists()) { + if (oldVaults.exists() && oldVaults.isDirectory()) { logger.info("********** Starting data storage conversion **********"); - logger.info("This might take a while."); + logger.info("This might take a while and might say \"unable to resolve\""); logger.info(oldVaults.toString() + " will remain as a backup."); recent = true; oldDir = oldVaults; - } else if (reallyOldVaults.exists()) { + } else if (reallyOldVaults.exists() && oldVaults.isDirectory()) { logger.info("********** Starting data storage conversion **********"); - logger.info("This might take a while."); + logger.info("This might take a while and might say \"unable to resolve\""); logger.info(reallyOldVaults.toString() + " will remain as a backup."); recent = false; oldDir = reallyOldVaults;