From d6b39a11e7b846f81b8173d2fc2ba94c286042b4 Mon Sep 17 00:00:00 2001 From: T00thpick1 Date: Sat, 29 Jun 2013 23:41:08 -0400 Subject: [PATCH] 0 is nonexistant, not -1 --- .../java/com/gmail/nossr50/database/SQLDatabaseManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java index 1244ff8d8..5e3d57c47 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -375,7 +375,7 @@ public final class SQLDatabaseManager implements DatabaseManager { int id = readId(playerName); - if (id == -1) { + if (id == 0) { // There is no such user if (create) { newUser(playerName);