Browse Source

Should fix #2223 for realz this time.

t00thpick1 10 years ago
parent
commit
be9ff51fd9

+ 1 - 1
src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java

@@ -470,7 +470,7 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
                     // Find if the line contains the player we want.
                     // Find if the line contains the player we want.
                     String[] character = line.split(":");
                     String[] character = line.split(":");
 
 
-                    if ((uuid == null || (!character[41].equalsIgnoreCase(uuid.toString()) && !character[41].equalsIgnoreCase("NULL"))) && !character[0].equalsIgnoreCase(playerName)) {
+                    if ((uuid != null && (!character[41].equalsIgnoreCase(uuid.toString()) && !character[41].equalsIgnoreCase("NULL"))) || (uuid == null && !character[0].equalsIgnoreCase(playerName))) {
                         continue;
                         continue;
                     }
                     }