From d487a9d1abe9119765d9f4c74186a893d82ba950 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 7 Feb 2024 19:51:58 -0600 Subject: [PATCH] server side race/cass restrictions --- src/engine/db/handlers/dbItemBaseHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/db/handlers/dbItemBaseHandler.java b/src/engine/db/handlers/dbItemBaseHandler.java index 202f6546..a190e230 100644 --- a/src/engine/db/handlers/dbItemBaseHandler.java +++ b/src/engine/db/handlers/dbItemBaseHandler.java @@ -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()) {