Browse Source

0 is nonexistant, not -1

T00thpick1 12 years ago
parent
commit
d6b39a11e7

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

@@ -375,7 +375,7 @@ public final class SQLDatabaseManager implements DatabaseManager {
 
 
         int id = readId(playerName);
         int id = readId(playerName);
 
 
-        if (id == -1) {
+        if (id == 0) {
             // There is no such user
             // There is no such user
             if (create) {
             if (create) {
                 newUser(playerName);
                 newUser(playerName);