Browse Source

error tracking

master
FatBoy-DOTC 2 years ago
parent
commit
b51843942b
  1. 12
      src/engine/db/handlers/dbLootTableHandler.java
  2. 1
      src/engine/loot/LootManager.java

12
src/engine/db/handlers/dbLootTableHandler.java

@ -182,13 +182,10 @@ public class dbLootTableHandler extends dbHandlerBase { @@ -182,13 +182,10 @@ public class dbLootTableHandler extends dbHandlerBase {
while (rs.next()) {
recordsRead++;
try {
LootManager.ModTypeTableRow mttr = new LootManager.ModTypeTableRow(rs);
LootManager.AddModTypeTableRow(rs.getInt("modGroup"), mttr);
}
catch(Exception ex){
Logger.info("MOD TABLE ERROR: " + rs.getInt("modGroup"));
}
}
Logger.info( "read: " + recordsRead);
@ -211,8 +208,13 @@ public class dbLootTableHandler extends dbHandlerBase { @@ -211,8 +208,13 @@ public class dbLootTableHandler extends dbHandlerBase {
while (rs.next()) {
recordsRead++;
try {
LootManager.ModTableRow mtr = new LootManager.ModTableRow(rs);
LootManager.AddModTableRow(rs.getInt("modTable"),mtr);
}
catch(Exception ex){
Logger.info("MOD TABLE ERROR: " + rs.getInt("modTable"));
}
}
Logger.info( "read: " + recordsRead);

1
src/engine/loot/LootManager.java

@ -83,7 +83,6 @@ public class LootManager { @@ -83,7 +83,6 @@ public class LootManager {
case "ITEM":
Item disc = Item.getItem(bse.itemBase);
if(disc != null) {
mob.getCharItemManager().addItemToInventory(disc);
}
break;

Loading…
Cancel
Save