Fix flatfile UUID conversion I think. Fixes #2225, #2411

This commit is contained in:
t00thpick1 2015-01-31 14:38:49 -05:00
parent 342662c944
commit 7a14e61762

View File

@ -638,9 +638,9 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
StringBuilder writer = new StringBuilder(); StringBuilder writer = new StringBuilder();
String line; String line;
while (((line = in.readLine()) != null) && !fetchedUUIDs.isEmpty()) { while (((line = in.readLine()) != null)) {
String[] character = line.split(":"); String[] character = line.split(":");
if (fetchedUUIDs.containsKey(character[0])) { if (!fetchedUUIDs.isEmpty() && fetchedUUIDs.containsKey(character[0])) {
if (character.length < 42) { if (character.length < 42) {
mcMMO.p.getLogger().severe("Could not update UUID for " + character[0] + "!"); mcMMO.p.getLogger().severe("Could not update UUID for " + character[0] + "!");
mcMMO.p.getLogger().severe("Database entry is invalid."); mcMMO.p.getLogger().severe("Database entry is invalid.");