Fixed bug with flatfile format updater

This commit is contained in:
TfT_02 2014-07-12 13:58:36 +02:00
parent 8e3e1d5f11
commit 0aa67727f5

View File

@ -736,13 +736,17 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
if (corrupted) {
mcMMO.p.debug("Updating corrupted database line for player " + newCharacter[0]);
newLine = new StringBuilder(org.apache.commons.lang.StringUtils.join(newCharacter, ":"));
}
if (oldVersion != null) {
mcMMO.p.debug("Updating database line for player " + character[0] + " from before version " + oldVersion);
}
if (corrupted || oldVersion != null) {
newLine = new StringBuilder(org.apache.commons.lang.StringUtils.join(newCharacter, ":"));
newLine = newLine.append(":");
}
writer.append(newLine).append("\r\n");
}