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();