Workaround for incomplete quester data, fixes #1704

This commit is contained in:
PikaMug 2021-06-01 17:55:45 -04:00
parent 1d3724e0aa
commit 0b77293929

View File

@ -200,7 +200,7 @@ public class SqlStorage implements StorageImplementation {
} else {
try (PreparedStatement ps = c.prepareStatement(statementProcessor.apply(PLAYER_INSERT))) {
ps.setString(1, uniqueId.toString());
ps.setString(2, lastKnownName);
ps.setString(2, lastKnownName != null ? lastKnownName : "unspecified");
ps.setInt(3, quester.getQuestPoints());
ps.execute();
}