forked from MagicBane/Server
error tracking
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user