mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Addresses #889: update mysql connector
This commit is contained in:
parent
1bb8719cab
commit
c865bb2382
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
||||
|
@ -257,7 +257,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 {
|
||||
|
Loading…
Reference in New Issue
Block a user