diff --git a/src/engine/db/handlers/dbItemHandler.java b/src/engine/db/handlers/dbItemHandler.java index 766a3db1..b83a14a9 100644 --- a/src/engine/db/handlers/dbItemHandler.java +++ b/src/engine/db/handlers/dbItemHandler.java @@ -321,12 +321,12 @@ public class dbItemHandler extends dbHandlerBase { return worked; } - public HashSet GET_ITEMS_FOR_VENDOR(final int vendorID) { + public HashSet GET_VENDOR_CAN_ROLL_LIST(final int vendorID) { HashSet itemSet = new HashSet<>(); try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("SELECT ID FROM static_itembase WHERE vendorType = ?")) { + PreparedStatement preparedStatement = connection.prepareStatement("SELECT ID FROM static_vendor_items WHERE vendorType = ?")) { preparedStatement.setInt(1, vendorID); diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 01e90bd1..507f51a1 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -1039,7 +1039,7 @@ public class NPC extends AbstractCharacter { public HashSet getCanRoll() { if (this.canRoll == null) - this.canRoll = DbManager.ItemQueries.GET_ITEMS_FOR_VENDOR(this.vendorID); + this.canRoll = DbManager.ItemQueries.GET_VENDOR_CAN_ROLL_LIST(this.vendorID); HashSet fullItemList = this.canRoll; HashSet filteredItemList = new HashSet<>();