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