changed the check to true rather than 1 to reflect the boolean format change

This commit is contained in:
Qweqker 2020-02-21 20:36:04 -05:00
parent cc29ed613b
commit 0ea681972f

View file

@ -59,7 +59,7 @@ public final class HighscoreSQLHandler extends SQLEntryHandler<Player> {
create();
return;
}
if (entry.getSavedData().getActivityData().getHardcoreDeath() == 1){
if (entry.getSavedData().getActivityData().getHardcoreDeath() == true){
//Update the SQL table to indicate the player was a Hardcore ironman that died, do not update hiscores
StringBuilder b = new StringBuilder("UPDATE highscores SET ironManMode='HARDCORE_DEAD' WHERE username ='" + value + "'");
PreparedStatement statement = connection.prepareStatement(b.toString());