From c865bb23829bceb24dae27265e3dd3a1b209b728 Mon Sep 17 00:00:00 2001 From: skeletor Date: Wed, 2 Mar 2022 21:44:53 +0000 Subject: [PATCH] Addresses #889: update mysql connector --- pom.xml | 2 +- src/main/java/com/eu/habbo/habbohotel/users/HabboStats.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 50967e7b..4cfb2d74 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ mysql mysql-connector-java - 5.1.49 + 8.0.22 runtime diff --git a/src/main/java/com/eu/habbo/habbohotel/users/HabboStats.java b/src/main/java/com/eu/habbo/habbohotel/users/HabboStats.java index 603e9b9e..144dd93f 100644 --- a/src/main/java/com/eu/habbo/habbohotel/users/HabboStats.java +++ b/src/main/java/com/eu/habbo/habbohotel/users/HabboStats.java @@ -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 {