From 049b27da966b5d2a0fef5915d545d8a8c04fa3dd Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 2 Jan 2025 21:04:03 -0600 Subject: [PATCH] all sages can repair everything --- src/engine/db/handlers/dbContractHandler.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/engine/db/handlers/dbContractHandler.java b/src/engine/db/handlers/dbContractHandler.java index 353b6b1a..27c3c608 100644 --- a/src/engine/db/handlers/dbContractHandler.java +++ b/src/engine/db/handlers/dbContractHandler.java @@ -128,15 +128,14 @@ public class dbContractHandler extends dbHandlerBase { } }else{ try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_npc_contract_selltype` WHERE `type` = ?;")) { - - preparedStatement.setInt(1, 2); + PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_npc_contract_selltype`;")) { ResultSet rs = preparedStatement.executeQuery(); while (rs.next()) { - if(!contract.getBuySkillToken().contains(rs.getInt("value"))) - contract.getBuySkillToken().add(rs.getInt("value")); + int value = rs.getInt("value"); + if(!contract.getBuySkillToken().contains(value)) + contract.getBuySkillToken().add(value); } } catch (SQLException e) { Logger.error(e);