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

1
src/engine/loot/LootManager.java

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

Loading…
Cancel
Save