Browse Source

server side race/cass restrictions

combat-2
FatBoy-DOTC 9 months ago
parent
commit
d487a9d1ab
  1. 4
      src/engine/db/handlers/dbItemBaseHandler.java

4
src/engine/db/handlers/dbItemBaseHandler.java

@ -99,8 +99,8 @@ public class dbItemBaseHandler extends dbHandlerBase { @@ -99,8 +99,8 @@ public class dbItemBaseHandler extends dbHandlerBase {
public void LOAD_ALL_ITEM_REQUIREMENTS(){
for(ItemBase itemBase : ItemBase._itemBaseByUUID.values()){
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM static_item_requirements WHERE 'itemID' = ?")) {
preparedStatement.setInt(1, itemBase.getUUID());
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM static_item_requirements WHERE 'itemName' = ?")) {
preparedStatement.setString(1, itemBase.getName());
ResultSet rs = preparedStatement.executeQuery();
//while(rs.next()) {

Loading…
Cancel
Save