From 43d8e08e83f14a80485598b24359f092b1df416f Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Sat, 26 Jan 2019 10:51:30 -0500 Subject: [PATCH] Fix offline inspecting a player hitting an error if the casing didn't match up perfectly. Fixes #3727 --- .../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 4c591b74e..04c8d533b 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -578,7 +578,7 @@ public final class SQLDatabaseManager implements DatabaseManager { resultSet.close(); statement.close(); - if (!playerName.isEmpty() && !playerName.equals(name)) { + if (!playerName.isEmpty() && !playerName.equalsIgnoreCase(name) && uuid != null) { statement = connection.prepareStatement( "UPDATE `" + tablePrefix + "users` " + "SET user = ? "