From 1c5d1cef7084f96152b5620ea108d48066f64c1f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 5 Aug 2023 10:11:31 -0400 Subject: [PATCH] Table refactor to conform with sb. --- src/engine/db/handlers/dbLootTableHandler.java | 6 +++--- src/engine/gameManager/LootManager.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/db/handlers/dbLootTableHandler.java b/src/engine/db/handlers/dbLootTableHandler.java index ec9ba9df..875b3ea5 100644 --- a/src/engine/db/handlers/dbLootTableHandler.java +++ b/src/engine/db/handlers/dbLootTableHandler.java @@ -35,7 +35,7 @@ public class dbLootTableHandler extends dbHandlerBase { int recordsRead = 0; try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("SELECT `groupID`, `minRoll`, `maxRoll`, `lootTableID`, `pModTableID`, `sModTableID` FROM `static_lootgroups`")) { + PreparedStatement preparedStatement = connection.prepareStatement("SELECT `groupID`, `minRoll`, `maxRoll`, `lootTableID`, `pModTableID`, `sModTableID` FROM `static_gentable`")) { ResultSet rs = preparedStatement.executeQuery(); @@ -134,12 +134,12 @@ public class dbLootTableHandler extends dbHandlerBase { } } - public void LOAD_ALL_LOOTGROUPS() { + public void LOAD_ALL_GENTABLES() { int recordsRead = 0; try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM static_lootgroups")) { + PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM static_gentable")) { ResultSet rs = preparedStatement.executeQuery(); diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index b1144fa7..1b1c7d32 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -48,7 +48,7 @@ public enum LootManager { // Load loot tables from database. - DbManager.LootQueries.LOAD_ALL_LOOTGROUPS(); + DbManager.LootQueries.LOAD_ALL_GENTABLES(); DbManager.LootQueries.LOAD_ALL_LOOTTABLES(); DbManager.LootQueries.LOAD_ALL_MODGROUPS(); DbManager.LootQueries.LOAD_ALL_MODTABLES();