Browse Source

mob resist issue

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
984c4d205a
  1. 2
      src/engine/db/handlers/dbMobBaseHandler.java
  2. 3
      src/engine/server/world/WorldServer.java

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

@ -115,7 +115,7 @@ public class dbMobBaseHandler extends dbHandlerBase {
public void LOAD_ALL_MOBBASE_RACES() { public void LOAD_ALL_MOBBASE_RACES() {
try (Connection connection = DbManager.getConnection(); try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_npc_mobbase_race`")) { PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_npc_mobbase_race`;")) {
ResultSet rs = preparedStatement.executeQuery(); ResultSet rs = preparedStatement.executeQuery();

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

@ -382,6 +382,9 @@ public class WorldServer {
Logger.info("Loading MobBases."); Logger.info("Loading MobBases.");
DbManager.MobBaseQueries.GET_ALL_MOBBASES(); DbManager.MobBaseQueries.GET_ALL_MOBBASES();
Logger.info("Loading MobBases.");
DbManager.MobBaseQueries.LOAD_ALL_MOBBASE_RACES();
Logger.info("Loading Mob Powers"); Logger.info("Loading Mob Powers");
PowersManager.AllMobPowers = dbPowerHandler.LOAD_MOB_POWERS(); PowersManager.AllMobPowers = dbPowerHandler.LOAD_MOB_POWERS();

Loading…
Cancel
Save