瀏覽代碼

Actually fix flatfile player loading....

you lied to me @tft_02
t00thpick1 10 年之前
父節點
當前提交
1119d3c17f
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java

+ 6 - 3
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))) {