From 1119d3c17f997345e272a33b969163d8d9596ff8 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Wed, 3 Sep 2014 00:05:48 -0400 Subject: [PATCH] Actually fix flatfile player loading.... you lied to me @tft_02 --- .../gmail/nossr50/database/FlatfileDatabaseManager.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java index 5c6eb3810..5d560a0b2 100644 --- a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java @@ -470,9 +470,12 @@ public final class FlatfileDatabaseManager implements DatabaseManager { // Find if the line contains the player we want. String[] character = line.split(":"); - // Compare names because we don't have a valid uuid for that player even if input uuid is not null - if (character[41].equalsIgnoreCase("NULL") && !character[0].equalsIgnoreCase(playerName)) { - continue; + // Compare names because we don't have a valid uuid for that player even + // if input uuid is not null + if (character[41].equalsIgnoreCase("NULL")) { + if (!character[0].equalsIgnoreCase(playerName)) { + continue; + } } // If input uuid is not null then we should compare uuids else if ((uuid != null && !character[41].equalsIgnoreCase(uuid.toString())) || (uuid == null && !character[0].equalsIgnoreCase(playerName))) {