Browse Source

Refactor of mob powers loading for efficiency.

master
MagicBot 1 year ago
parent
commit
0b1df09f3a
  1. 2
      src/engine/db/handlers/dbPowerHandler.java
  2. 2
      src/engine/server/world/WorldServer.java

2
src/engine/db/handlers/dbPowerHandler.java

@ -45,7 +45,7 @@ public class dbPowerHandler extends dbHandlerBase {
recordsRead++; recordsRead++;
mobbaseID = rs.getInt("mobbaseID"); mobbaseID = rs.getInt("mobbaseUUID");
mobPowerEntry = new MobPowerEntry(rs); mobPowerEntry = new MobPowerEntry(rs);
if (mobPowers.get(mobbaseID) == null) { if (mobPowers.get(mobbaseID) == null) {

2
src/engine/server/world/WorldServer.java

@ -348,7 +348,7 @@ public class WorldServer {
Logger.info("Loading MobBases."); Logger.info("Loading MobBases.");
DbManager.MobBaseQueries.GET_ALL_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(); PowersManager.AllMobPowers = DbManager.PowerQueries.LOAD_MOB_POWERS();
Logger.info("Loading item enchants"); Logger.info("Loading item enchants");

Loading…
Cancel
Save