Browse Source

all sages can repair everything

lakebane2
FatBoy-DOTC 2 weeks ago
parent
commit
049b27da96
  1. 9
      src/engine/db/handlers/dbContractHandler.java

9
src/engine/db/handlers/dbContractHandler.java

@ -128,15 +128,14 @@ public class dbContractHandler extends dbHandlerBase { @@ -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);

Loading…
Cancel
Save