From a3a2b01ec4fbda4fbac26e0f4a6c521498f672aa Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 6 Aug 2023 08:36:16 -0400 Subject: [PATCH] Method moved to manager class. --- src/engine/gameManager/LootManager.java | 9 +++++++++ src/engine/objects/LootTable.java | 10 ---------- src/engine/server/world/WorldServer.java | 2 +- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 2011d080..7f76f629 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -436,4 +436,13 @@ public enum LootManager { } } + //call this on server startup to populate the tables + public static void populateLootTables() { + + DbManager.LootQueries.populateGenTables(); + DbManager.LootQueries.populateItemTables(); + DbManager.LootQueries.populateModTables(); + DbManager.LootQueries.populateModTypeTables(); + + } } \ No newline at end of file diff --git a/src/engine/objects/LootTable.java b/src/engine/objects/LootTable.java index 950b9867..eb738554 100644 --- a/src/engine/objects/LootTable.java +++ b/src/engine/objects/LootTable.java @@ -124,16 +124,6 @@ public class LootTable { return modTypeTable; } - //call this on server startup to populate the tables - public static void populateLootTables() { - - DbManager.LootQueries.populateGenTables(); - DbManager.LootQueries.populateItemTables(); - DbManager.LootQueries.populateModTables(); - DbManager.LootQueries.populateModTypeTables(); - - } - public static int gaussianLevel(int level) { int ret = -76; diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index e2cc71d5..15e1da65 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -341,7 +341,7 @@ public class WorldServer { LootManager.init(); //load old loot system (still needed for rolling for now) - LootTable.populateLootTables(); + LootManager.populateLootTables(); RuneBaseAttribute.LoadAllAttributes(); RuneBase.LoadAllRuneBases(); BaseClass.LoadAllBaseClasses();