From 0b1df09f3a01a4bde3e20088aebc27056e610831 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 8 Aug 2023 10:30:20 -0400 Subject: [PATCH] Refactor of mob powers loading for efficiency. --- src/engine/db/handlers/dbPowerHandler.java | 2 +- src/engine/server/world/WorldServer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/db/handlers/dbPowerHandler.java b/src/engine/db/handlers/dbPowerHandler.java index 4b0b984a..85a1330a 100644 --- a/src/engine/db/handlers/dbPowerHandler.java +++ b/src/engine/db/handlers/dbPowerHandler.java @@ -45,7 +45,7 @@ public class dbPowerHandler extends dbHandlerBase { recordsRead++; - mobbaseID = rs.getInt("mobbaseID"); + mobbaseID = rs.getInt("mobbaseUUID"); mobPowerEntry = new MobPowerEntry(rs); if (mobPowers.get(mobbaseID) == null) { diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index 023a85e9..d312ca10 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -348,7 +348,7 @@ public class WorldServer { Logger.info("Loading MobBases."); DbManager.MobBaseQueries.GET_ALL_MOBBASES(); - Logger.info("Loading Mob Powers for MobBases"); + Logger.info("Loading Mob Powers"); PowersManager.AllMobPowers = DbManager.PowerQueries.LOAD_MOB_POWERS(); Logger.info("Loading item enchants");