Enchant Value derived form parser instead of database

This commit is contained in:
FatBoy committed 2024-08-22 18:56:56 -05:00
1 parent 3d96e6504e
commit 769b84b9da
3 files changed
+2 -23

No files matched your search

-16
View File
@@ -221,20 +221,4 @@ public class dbLootHandler extends dbHandlerBase {
return bootySets;
}
public void LOAD_ENCHANT_VALUES() {
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("SELECT `IDString`, `minMod` FROM `static_power_effectmod` WHERE `modType` = ?")) {
preparedStatement.setString(1, "Value");
ResultSet rs = preparedStatement.executeQuery();
while (rs.next())
Item.addEnchantValue(rs.getString("IDString"), rs.getInt("minMod"));
} catch (SQLException e) {
Logger.error(e);
}
}
}