From b958c4dbfe60d7280e4880b052c27d4d041df66b Mon Sep 17 00:00:00 2001 From: Swirny <140-Swirny@users.noreply.git.krews.org> Date: Thu, 4 Jun 2020 05:18:32 -0400 Subject: [PATCH] Update UpdateModToolIssue.java --- .../com/eu/habbo/threading/runnables/UpdateModToolIssue.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/eu/habbo/threading/runnables/UpdateModToolIssue.java b/src/main/java/com/eu/habbo/threading/runnables/UpdateModToolIssue.java index 2f6d043c..f51a2a04 100644 --- a/src/main/java/com/eu/habbo/threading/runnables/UpdateModToolIssue.java +++ b/src/main/java/com/eu/habbo/threading/runnables/UpdateModToolIssue.java @@ -30,8 +30,7 @@ public class UpdateModToolIssue implements Runnable { } catch (SQLException e) { LOGGER.error("Caught SQL exception", e); } - try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("UPDATE users_settings SET cfh_send = cfh_send + ? WHERE user_id = ?")) { - statement.setInt(1, 1); + try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("UPDATE users_settings SET cfh_send = cfh_send + 1 WHERE user_id = ?")) { statement.setInt(2, this.issue.senderId); statement.execute(); } catch (SQLException e) {