Merge branch 'mysql-connector-update' into 'dev'

Addresses #889: update mysql connector

See merge request morningstar/Arcturus-Community!339
This commit is contained in:
Remco 2022-03-02 21:44:54 +00:00
commit 9e05691ba6
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.49</version>
<version>8.0.22</version>
<scope>runtime</scope>
</dependency>

View File

@ -268,7 +268,7 @@ public class HabboStats implements Runnable {
try (PreparedStatement statement = connection.prepareStatement("SELECT * FROM users_settings WHERE user_id = ? LIMIT 1")) {
statement.setInt(1, habboInfo.getId());
try (ResultSet set = statement.executeQuery()) {
set.first();
set.next();
if (set.getRow() != 0) {
stats = new HabboStats(set, habboInfo);
} else {