Fix f49be46c - added code to wrong part of file

This commit is contained in:
riking 2013-07-31 17:43:25 -07:00
parent cb8be8b82f
commit 82f8022f54

View File

@ -116,10 +116,6 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
String line = "";
while ((line = in.readLine()) != null) {
// Length checks depend on last character being ':'
if (line.charAt(line.length() - 1) != ':') {
line = line + ":";
}
String[] character = line.split(":");
String name = character[0];
long lastPlayed;
@ -587,6 +583,10 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
String line = "";
while ((line = in.readLine()) != null) {
// Length checks depend on last character being ':'
if (line.charAt(line.length() - 1) != ':') {
line = line + ":";
}
String[] character = line.split(":");
// If they're valid, rewrite them to the file.