Fix out of bounds statement parameter caused by earlier removal of report preferences

This commit is contained in:
Keir Nellyer 2016-07-21 23:11:48 +01:00
parent c5f3f2b2d6
commit 369246f635

View File

@ -65,7 +65,7 @@ public class PreferencesRepository extends MinecraftRepository
preparedStatement.setBoolean(14, entry.getValue().HubMusic);
preparedStatement.setBoolean(15, entry.getValue().DisableAds);
System.out.println(">> " + entry.getValue().ClanTips);
preparedStatement.setString(17, entry.getKey());
preparedStatement.setString(16, entry.getKey());
preparedStatement.addBatch();
}
@ -95,7 +95,7 @@ public class PreferencesRepository extends MinecraftRepository
preparedStatement.setBoolean(14, entry.getValue().HubMusic);
preparedStatement.setBoolean(15, entry.getValue().DisableAds);
System.out.println(">> " + entry.getValue().ClanTips);
preparedStatement.setString(17, entry.getKey());
preparedStatement.setString(16, entry.getKey());
preparedStatement.execute();
}