Fix offline inspecting a player hitting an error if the casing didn't match up perfectly. Fixes #3727

This commit is contained in:
t00thpick1 2019-01-26 10:51:30 -05:00
parent 859063e406
commit 43d8e08e83

View File

@ -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 = ? "