From 7a14e61762bd2b211ae6f4ef53b81452b381322c Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Sat, 31 Jan 2015 14:38:49 -0500 Subject: [PATCH] Fix flatfile UUID conversion I think. Fixes #2225, #2411 --- .../com/gmail/nossr50/database/FlatfileDatabaseManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java index 4782ed981..fd0a26e48 100644 --- a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java @@ -638,9 +638,9 @@ public final class FlatfileDatabaseManager implements DatabaseManager { StringBuilder writer = new StringBuilder(); String line; - while (((line = in.readLine()) != null) && !fetchedUUIDs.isEmpty()) { + while (((line = in.readLine()) != null)) { String[] character = line.split(":"); - if (fetchedUUIDs.containsKey(character[0])) { + if (!fetchedUUIDs.isEmpty() && fetchedUUIDs.containsKey(character[0])) { if (character.length < 42) { mcMMO.p.getLogger().severe("Could not update UUID for " + character[0] + "!"); mcMMO.p.getLogger().severe("Database entry is invalid.");